/* Simple raw-data download mockup. */
[hidden] {
  display: none !important;
}
.raw-file-preview {
  min-height: 470px;
  padding: 32px;
  border: 2px solid #000;
  border-radius: 5px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.raw-file-preview > strong {
  font-size: 20px;
}
.raw-file-preview > p {
  margin: 0;
  color: #595959;
  line-height: 1.7;
}
.csv-sheet {
  width: 205px;
  padding: 22px;
  background: #f0bdd0;
  border: 2px solid #000;
  box-shadow: 7px 7px 0 #000;
  transform: rotate(-5deg);
  text-align: left;
  margin: 12px 0 18px;
}
.csv-sheet > span {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 18px;
}
.csv-sheet > strong {
  display: block;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -3px;
  margin: 26px 0 20px;
}
.csv-lines {
  height: 35px;
  border-top: 2px solid;
  border-bottom: 2px solid;
  background: repeating-linear-gradient(90deg, transparent 0 38px, #000 38px 40px);
  margin-bottom: 13px;
}
.csv-sheet small {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
#data-view .export-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  max-width: 1050px;
}
#data-view .export-panel {
  position: static;
  padding: 30px;
}
@media (max-width: 1050px) {
  #data-view .export-layout {
    grid-template-columns: 1fr;
  }
}

@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dm-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

/* Paul's website palette, commit 761ffc0. See DESIGN.md. */
:root {
  --background: #f2f2f4;
  --main: #f0bdd0;
  --sand: #f7e6a3;
  --paper: #fff;
  --ink: #000;
  --muted: #595959;
  --neutral-line: #d3d3d8;
  --radius: 5px;
  --line: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 500;
  color: var(--ink);
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
select,
input[type='checkbox'],
input[type='radio'] {
  cursor: pointer;
}
button {
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--ink);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand,
.metric-number,
.donut-number,
.export-count strong {
  font-family: 'DM Sans', Arial, sans-serif;
}
svg {
  display: block;
}
svg.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 15px;
  background: var(--sand);
  padding: 14px;
  border: var(--line);
  z-index: 20;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  width: 244px;
  background: var(--paper);
  border-right: var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 35px 20px 22px;
  z-index: 5;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 43px;
  font-weight: 800;
  letter-spacing: -2.5px;
  margin: 0 7px 43px;
  line-height: 1;
}
.brand > svg {
  width: 36px;
  height: 36px;
  fill: var(--ink);
}
.brand-dot {
  color: var(--ink);
}
.workspace-label,
.eyebrow,
.small-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
}
.workspace-label {
  margin: 0 9px 12px;
  color: var(--muted);
}
.workspace {
  border: var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
}
.workspace-logo {
  background: var(--sand);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  height: 33px;
  width: 33px;
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 27px;
  padding-left: 7px;
  position: relative;
}
.workspace-logo > span {
  position: absolute;
  font-size: 14px;
  right: 3px;
  top: 0;
}
.workspace > div {
  display: grid;
  gap: 3px;
}
.workspace strong {
  font-size: 13px;
}
.workspace > div > span {
  font-size: 11px;
  color: var(--muted);
}
.workspace-check {
  margin-left: auto;
  font-weight: 700;
  font-size: 14px;
}
nav {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 12px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 650;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.nav-link.active {
  background: var(--main);
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-link:not(.active):hover {
  background: var(--background);
}
.nav-link .icon {
  width: 18px;
  height: 18px;
}
.nav-arrow {
  margin-left: auto;
  font-size: 20px;
}
.nav-link:not(.active) .nav-arrow {
  visibility: hidden;
}
.sidebar-note {
  margin: auto 8px 32px;
  padding-top: 54px;
}
.small-star {
  font-size: 52px;
  display: block;
  line-height: 1;
  margin-bottom: 15px;
}
.sidebar-note strong {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 22px;
  letter-spacing: -0.7px;
  line-height: 1.2;
  display: block;
}
.sidebar-note p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 13px;
}
.note-line {
  width: 37px;
  height: 2px;
  background: var(--ink);
  margin: 23px 0 16px;
}
.sidebar-note > span:last-child {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}
.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--neutral-line);
  padding-top: 22px;
}
.avatar {
  background: var(--sand);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.sidebar-bottom > div {
  display: grid;
  gap: 3px;
}
.sidebar-bottom strong {
  font-size: 10px;
}
.sidebar-bottom > div > span {
  font-size: 9px;
  color: var(--muted);
}
.status-dot {
  height: 7px;
  width: 7px;
  background: var(--ink);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.sidebar-bottom > .status-dot {
  margin-left: auto;
}
.app-shell {
  margin-left: 244px;
}
.topbar {
  height: 44px;
  background: var(--paper);
  border-bottom: var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 13px;
  align-items: center;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 550;
}
.breadcrumb > span {
  color: var(--muted);
}
.demo-badge {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 7px 9px;
  display: flex;
  gap: 7px;
  align-items: center;
  background: var(--background);
  font-size: 10px;
}
.demo-date {
  color: var(--muted);
}
main {
  padding: 38px 38px 0;
  max-width: 1620px;
  margin: 0 auto;
}
main:focus {
  outline: none;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-bottom: 38px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-square {
  height: 8px;
  width: 8px;
  background: var(--main);
  border: 1.5px solid var(--ink);
  display: inline-block;
}
.page-intro h1 {
  font-size: clamp(32px, 3.15vw, 48px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -1.9px;
  margin: 18px 0 17px;
}
.highlight {
  background: var(--main);
  box-shadow:
    5px 0 0 var(--main),
    -3px 0 0 var(--main);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.highlight.pink {
  background: var(--main);
  box-shadow:
    5px 0 0 var(--main),
    -3px 0 0 var(--main);
}
.page-intro p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.intro-stamp {
  background: var(--sand);
  border: var(--line);
  border-radius: 50%;
  width: 122px;
  height: 122px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: rotate(10deg);
  margin-right: 18px;
  flex-shrink: 0;
  box-shadow: 3px 3px 0 var(--ink);
}
.intro-stamp span {
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 700;
}
.intro-stamp svg {
  height: 53px;
  width: 53px;
  fill: var(--ink);
}
.intro-stamp span:last-child {
  font-size: 6px;
}
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.board-heading {
  display: flex;
  gap: 9px;
  align-items: center;
}
.board-heading strong {
  font-size: 14px;
}
.muted {
  color: var(--muted);
  font-size: 11px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--main);
}
.select-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  box-shadow: 2px 2px 0 var(--ink);
}
.select-control > .icon,
.select-control > span > .icon {
  width: 16px;
  height: 16px;
}
.select-control select {
  border: 0;
  background: transparent;
  font-size: 11px;
  max-width: 230px;
  padding: 3px 1px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.metric {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  padding: 20px 19px 16px;
  box-shadow: var(--shadow);
  min-width: 0;
  position: relative;
}
.metric.primary {
  background: var(--main);
}
.metric-head {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  line-height: 1.3;
  font-size: 11px;
  font-weight: 600;
}
.metric-head .icon {
  width: 18px;
  height: 18px;
}
.metric-number {
  font-size: 40px;
  letter-spacing: -1.7px;
  line-height: 1.15;
  font-weight: 600;
  margin: 14px 0 10px;
}
.metric-sub {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.45;
}
.metric-sub strong {
  color: var(--ink);
  font-weight: 650;
}
.metric-accent {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 49px;
  height: 25px;
}
.metric-accent path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}
.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  gap: 24px;
}
.panel {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 23px 0;
}
.panel-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.1px;
  color: var(--muted);
}
h2 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  font-weight: 600;
}
.panel-heading h2 {
  margin: 9px 0;
}
.panel-heading p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.icon-square {
  width: 34px;
  height: 34px;
  border: var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.yellow {
  background: var(--sand);
}
.pink {
  background: var(--main);
}
.neutral {
  background: var(--background);
}
.friction-chart {
  padding: 20px 23px 19px;
  display: grid;
  gap: 14px;
}
.bar-row {
  display: block;
  text-align: left;
  width: 100%;
  padding: 0;
  border-radius: 2px;
}
.bar-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  margin-bottom: 7px;
}
.bar-caption strong {
  font-size: 10px;
}
.bar-caption strong span {
  color: var(--muted);
  font-weight: 400;
}
.bar-track {
  height: 13px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--background);
  overflow: hidden;
  display: block;
}
.bar-fill {
  height: 100%;
  display: block;
  border-right: 1.5px solid var(--ink);
  transition: width 0.3s;
}
.bar-row:hover .bar-caption > span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.panel-foot {
  padding: 13px 23px;
  border-top: 1px solid var(--neutral-line);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
}
.tiny-dot {
  width: 5px;
  height: 5px;
  background: var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
}
.sentiment-body {
  padding: 23px 23px 19px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
}
.donut {
  width: 147px;
  height: 147px;
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--ink);
}
.donut-hole {
  width: 99px;
  height: 99px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.donut-number {
  font-size: 34px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -1.3px;
}
.donut-hole > span:last-child {
  font-size: 9px;
  color: var(--muted);
}
.sentiment-legend {
  display: grid;
  gap: 15px;
}
.legend-row {
  font-size: 10px;
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 5px 7px;
  align-items: center;
}
.legend-row .swatch {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 2px;
}
.legend-row strong {
  grid-column: 2;
  font-size: 13px;
  font-family: 'DM Sans', Arial, sans-serif;
}
.legend-row strong span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}
.method-note {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin: 4px 23px 22px;
  border-top: 1px solid var(--neutral-line);
  padding-top: 13px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 37px 0 20px;
  gap: 15px;
}
.section-title .eyebrow {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 9px;
}
.section-title h2 {
  font-size: 26px;
  letter-spacing: -1px;
}
.title-dot {
  color: var(--ink);
}
.small-label {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.insight-card {
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 233px;
}
.insight-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.insight-tag {
  font-size: 8px;
  font-weight: 700;
  padding: 4px 6px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: #fff8;
  letter-spacing: 0.5px;
}
.insight-number {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 17px;
}
.insight-card h3 {
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  max-width: 220px;
  margin-bottom: 11px;
}
.insight-card > p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
}
.insight-card > button {
  padding: 12px 0 0;
  border-top: 1px solid #0004;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 10px;
  font-weight: 650;
}
.insight-card > button > span:last-child {
  font-size: 20px;
  line-height: 1;
}
.insight-card > button:hover {
  text-decoration: underline;
}
.quotes-title {
  margin-top: 36px;
}
.text-button {
  font-size: 11px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 6px 0;
}
.text-button > span {
  font-size: 20px;
  line-height: 1;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.quote-card {
  padding: 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.quote-top {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;
  margin-bottom: 14px;
}
.quote-top .quote-mark {
  font-size: 35px;
  font-family: Georgia, serif;
  height: 20px;
  line-height: 1;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #0006;
  border-radius: var(--radius);
  font-size: 8px;
  font-weight: 550;
  padding: 4px 6px;
  line-height: 1.2;
  width: fit-content;
}
.tag.frustration {
  background: var(--main);
}
.tag.confusion {
  background: var(--sand);
}
.tag.neutral {
  background: var(--background);
}
.tag.need {
  background: var(--sand);
}
.quote-card blockquote {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 500;
}
.quote-card > button {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 0 0;
  border-top: 1px solid var(--neutral-line);
  font-size: 9px;
  color: var(--muted);
  text-align: left;
}
.quote-card > button:hover {
  color: var(--ink);
  text-decoration: underline;
}
.quote-card > button span:last-child {
  font-size: 19px;
}
.board-disclaimer {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 24px 0 28px;
  padding: 12px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}
.board-disclaimer > .icon,
.board-disclaimer > span > .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.board-disclaimer strong {
  font-weight: 600;
}
.page-footer {
  border-top: 1px solid var(--neutral-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 21px 0 25px;
  font-size: 9px;
  color: var(--muted);
}
.page-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-footer > span:first-child > span {
  font-size: 20px;
  color: var(--ink);
}
.page-footer > span:last-child {
  font-size: 8px;
  letter-spacing: 1px;
}
/* Raw data and export workspace */
.data-intro {
  margin-bottom: 32px;
}
.data-stamp {
  width: 112px;
  height: 112px;
  background: var(--main);
  border: var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  transform: rotate(-7deg);
  margin-right: 23px;
}
.data-stamp .icon {
  width: 55px;
  height: 55px;
  stroke-width: 1.4;
}
.export-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 23px;
  align-items: start;
  margin-bottom: 35px;
}
.data-filters {
  padding: 17px;
  margin-bottom: 23px;
  box-shadow: 2px 2px 0 var(--ink);
}
.search-control {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 9px 11px;
  background: #fff;
}
.search-control .icon {
  width: 17px;
  height: 17px;
}
.search-control input {
  border: 0;
  width: 100%;
  background: transparent;
  font-size: 12px;
  padding: 2px;
  min-width: 0;
}
.search-control input:focus {
  outline: none;
}
.search-control:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.filter-row {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.filter-row label {
  display: grid;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
}
.filter-row select {
  font-size: 10px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 8px 4px;
  min-width: 0;
  width: 100%;
}
#active-scope {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sand);
  padding: 9px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 10px;
  margin-top: 12px;
}
#active-scope button {
  font-weight: 700;
  margin-left: auto;
}
.table-panel {
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink);
}
.table-heading {
  padding: 20px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.table-heading h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
}
.table-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.small {
  font-size: 10px;
  gap: 7px;
}
.small > span {
  font-size: 17px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 610px;
}
th {
  background: var(--background);
  font-size: 8px;
  letter-spacing: 0.6px;
  padding: 12px 10px;
  border-block: 1px solid var(--ink);
  font-weight: 650;
}
td {
  font-size: 10px;
  padding: 15px 10px;
  border-bottom: 1px solid var(--neutral-line);
  vertical-align: top;
  line-height: 1.5;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--background);
}
.checkbox-cell {
  width: 35px;
  padding-left: 16px;
  padding-right: 0;
}
table input[type='checkbox'] {
  width: 14px;
  height: 14px;
  margin: 2px 0;
}
.session-cell {
  min-width: 83px;
}
.session-cell strong {
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.session-cell span {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 5px;
  white-space: nowrap;
}
.verbatim-cell {
  min-width: 170px;
  max-width: 360px;
}
.speaker {
  font-size: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}
.speaker:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}
.speaker.kosmo:before {
  background: var(--ink);
}
.verbatim-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.65;
}
.context-cell {
  font-size: 9px;
  color: var(--muted);
  width: 95px;
}
.row-open {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  height: 25px;
  width: 25px;
  font-size: 16px;
  background: var(--paper);
}
.row-open:hover {
  background: var(--main);
  border-color: var(--ink);
}
.empty-cell {
  text-align: center;
  padding: 45px 20px;
}
.empty-cell strong {
  font-size: 15px;
  display: block;
  margin-bottom: 8px;
}
.empty-cell p {
  color: var(--muted);
}
.pagination {
  border-top: 1px solid var(--neutral-line);
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.icon-button {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: var(--radius);
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.icon-button:hover:not(:disabled) {
  background: var(--main);
}
.export-panel {
  padding: 22px;
  background: var(--sand);
  position: sticky;
  top: 25px;
}
.export-icon {
  height: 42px;
  width: 42px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  box-shadow: 2px 2px 0 var(--ink);
}
.export-panel .eyebrow {
  font-size: 8px;
}
.export-panel h2 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 11px 0;
}
.export-panel > p {
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink);
}
.export-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0 19px;
  padding-bottom: 17px;
  border-bottom: 1px solid #0004;
}
.export-count strong {
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -1px;
}
.export-count > span {
  font-size: 10px;
  line-height: 1.5;
}
.format-options {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}
.format-options legend {
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 650;
  margin-bottom: 11px;
}
.format-options label {
  background: #fff9;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 11px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.format-options label:has(:checked) {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
}
.format-options input {
  width: 13px;
  height: 13px;
  margin: 0;
}
.format-options strong {
  font-size: 11px;
}
.format-options small {
  display: block;
  font-size: 8px;
  line-height: 1.3;
  margin-top: 4px;
  color: var(--muted);
}
.annotation-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 23px 0 16px;
}
.annotation-option input {
  width: 14px;
  height: 14px;
  margin: 1px 0;
}
.annotation-option strong {
  font-size: 10px;
  display: block;
}
.annotation-option small {
  font-size: 9px;
  line-height: 1.6;
  display: block;
  margin-top: 6px;
  color: var(--ink);
}
.export-panel .export-detail {
  font-size: 9px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.primary-button {
  background: var(--main);
  color: var(--ink);
  border: var(--line);
  border-radius: var(--radius);
  padding: 13px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 550;
  box-shadow: var(--shadow);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.primary-button:not(:disabled):hover,
.primary-button:not(:disabled):active {
  transform: translate(4px, 4px);
  box-shadow: none;
}
.export-button {
  width: 100%;
  margin-bottom: 15px;
}
.export-button .icon {
  width: 16px;
  height: 16px;
}
.export-button > span:last-child {
  margin-left: auto;
  font-size: 16px;
}
.export-local {
  font-size: 8px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
#clear-selection {
  margin: -12px 0 17px;
  font-size: 9px;
}
/* Source conversations and accessibility */
dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(610px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-left: var(--line);
  padding: 27px 28px 35px;
  background: var(--paper);
  overflow-y: auto;
  box-shadow: -7px 0 0 #0002;
  color: var(--ink);
}
dialog::backdrop {
  background: #0007;
  backdrop-filter: blur(2px);
}
.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.drawer-top > .eyebrow {
  font-size: 9px;
}
.drawer-top .icon-button {
  font-size: 25px;
}
.drawer-summary h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}
.drawer-insight {
  padding: 15px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--sand);
  margin-bottom: 22px;
}
.drawer-insight h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.drawer-insight p {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 7px;
}
.drawer-insight strong {
  font-weight: 650;
}
.drawer-source {
  font-size: 10px;
  line-height: 1.6;
  padding: 10px 0 15px;
  color: var(--muted);
}
.transcript {
  display: grid;
  gap: 13px;
}
.message {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 15px;
  margin-right: 23px;
}
.message.user {
  margin-right: 0;
  margin-left: 23px;
  border-color: var(--ink);
  background: var(--background);
}
.message.highlight-message {
  box-shadow: 3px 3px 0 var(--ink);
  border: var(--line);
  background: var(--sand);
}
.message-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
  font-size: 9px;
  color: var(--muted);
}
.message-top strong {
  font-weight: 650;
  color: var(--ink);
}
.message > p {
  font-size: 12px;
  line-height: 1.75;
}
.message-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-top: 1px solid #0002;
  margin-top: 12px;
  padding-top: 10px;
}
.message-annotation {
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 8px;
}
.drawer-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.drawer-actions .primary-button {
  background: var(--main);
  color: var(--ink);
  box-shadow: var(--shadow);
  width: 100%;
}
.evidence-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.evidence-button {
  text-align: left;
  border: 1.5px solid var(--ink);
  padding: 15px;
  background: var(--paper);
  border-radius: var(--radius);
}
.evidence-button:hover {
  background: var(--background);
}
.evidence-button > span {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.evidence-button p {
  font-size: 12px;
  line-height: 1.6;
}
.evidence-button .evidence-link {
  font-size: 10px;
  color: var(--ink);
  margin: 12px 0 0;
  font-weight: 600;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  z-index: 15;
  max-width: calc(100% - 30px);
  background: var(--ink);
  color: var(--paper);
  padding: 15px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--main);
  font-size: 12px;
  line-height: 1.5;
}
.noscript {
  position: fixed;
  inset: 20px 20px auto;
  background: var(--sand);
  border: var(--line);
  padding: 25px;
  z-index: 20;
}
@media (min-width: 1600px) {
  main {
    padding: 42px 52px 0;
  }
  .topbar {
    padding-inline: 52px;
  }
  .metric {
    padding: 22px;
  }
  .metrics {
    gap: 23px;
  }
  .metric-number {
    font-size: 46px;
  }
  .page-intro h1 {
    font-size: 52px;
  }
  .panel-heading {
    padding: 26px 26px 0;
  }
  .friction-chart {
    padding: 24px 26px;
  }
  .analysis-grid {
    grid-template-columns: 1.55fr 1fr;
  }
  .sentiment-body {
    gap: 32px;
  }
  .donut {
    width: 164px;
    height: 164px;
  }
  .donut-hole {
    width: 112px;
    height: 112px;
  }
  .insight-card {
    padding: 23px;
  }
  .export-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 218px;
    padding-inline: 16px;
  }
  .app-shell {
    margin-left: 218px;
  }
  main {
    padding: 30px 26px 0;
  }
  .topbar {
    padding-inline: 26px;
  }
  .page-intro h1 {
    font-size: 38px;
  }
  .intro-stamp {
    width: 105px;
    height: 105px;
    margin-right: 0;
  }
  .intro-stamp svg {
    height: 42px;
    width: 42px;
  }
  .board-heading .muted {
    display: none;
  }
  .metrics {
    gap: 13px;
  }
  .metric {
    padding: 16px 13px;
  }
  .metric-head {
    font-size: 10px;
  }
  .metric-number {
    font-size: 36px;
  }
  .analysis-grid {
    gap: 18px;
  }
  .panel-heading {
    padding: 20px 18px 0;
  }
  .panel-heading h2 {
    font-size: 21px;
  }
  .friction-chart {
    padding-inline: 18px;
  }
  .sentiment-body {
    padding-inline: 12px;
    gap: 15px;
  }
  .donut {
    width: 121px;
    height: 121px;
  }
  .donut-hole {
    width: 81px;
    height: 81px;
  }
  .donut-number {
    font-size: 29px;
  }
  .legend-row {
    font-size: 9px;
  }
  .method-note {
    margin-inline: 18px;
  }
  .insight-grid,
  .quotes-grid {
    gap: 15px;
  }
  .insight-card {
    padding: 17px;
  }
  .insight-card h3 {
    font-size: 18px;
  }
  .export-layout {
    grid-template-columns: minmax(0, 1fr) 249px;
    gap: 19px;
  }
  .export-panel {
    padding: 19px;
  }
  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .table-heading .text-button {
    padding: 0;
  }
}
@media (max-width: 980px) {
  .sidebar {
    width: 190px;
    padding-inline: 13px;
  }
  .app-shell {
    margin-left: 190px;
  }
  .brand {
    font-size: 37px;
    gap: 8px;
  }
  .brand > svg {
    width: 30px;
  }
  .workspace {
    padding: 10px 8px;
    gap: 7px;
  }
  .workspace strong {
    font-size: 11px;
  }
  .workspace-check {
    display: none;
  }
  .nav-link {
    font-size: 11px;
    gap: 8px;
    padding: 14px 9px;
  }
  .sidebar-note strong {
    font-size: 20px;
  }
  .sidebar-bottom strong {
    font-size: 9px;
  }
  .sidebar-bottom > div > span {
    font-size: 8px;
  }
  .sidebar-bottom > .status-dot {
    display: none;
  }
  .page-intro h1 {
    font-size: 34px;
  }
  .page-intro .eyebrow {
    font-size: 8px;
  }
  .intro-stamp {
    width: 87px;
    height: 87px;
  }
  .intro-stamp span {
    font-size: 6px;
  }
  .intro-stamp span:last-child {
    font-size: 5px;
  }
  .intro-stamp svg {
    width: 35px;
    height: 35px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
  }
  .metric-number {
    font-size: 40px;
  }
  .metric-head {
    font-size: 12px;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .sentiment-body {
    gap: 37px;
    justify-content: flex-start;
    padding-left: 26px;
  }
  .donut {
    width: 140px;
    height: 140px;
  }
  .donut-hole {
    width: 94px;
    height: 94px;
  }
  .legend-row {
    font-size: 11px;
  }
  .sentiment-legend {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .emotion-panel .method-note {
    margin-bottom: 18px;
  }
  .section-title .small-label {
    display: none;
  }
  .section-title h2 {
    font-size: 23px;
  }
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .insight-card {
    min-height: 0;
  }
  .insight-card h3 {
    max-width: none;
  }
  .quotes-grid {
    grid-template-columns: 1fr;
  }
  .export-layout {
    grid-template-columns: 1fr;
  }
  .export-panel {
    position: static;
    display: block;
  }
  .export-panel h2 br {
    display: none;
  }
  .export-count {
    justify-content: flex-start;
  }
  .export-panel .format-options {
    max-width: 400px;
  }
  .export-button {
    max-width: 400px;
  }
  .export-local {
    justify-content: flex-start;
  }
  .data-stamp {
    width: 88px;
    height: 88px;
    margin-right: 0;
  }
  .data-stamp .icon {
    height: 40px;
    width: 40px;
  }
  .data-filters {
    margin-bottom: 20px;
  }
  .table-heading {
    flex-direction: row;
    align-items: center;
  }
  .table-heading .text-button {
    white-space: nowrap;
  }
  .export-icon {
    margin-bottom: 18px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: auto;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 17px 15px;
    padding: 20px 20px 17px;
    border-right: 0;
    border-bottom: var(--line);
  }
  .brand {
    font-size: 34px;
    margin: 0 0 0 1px;
    gap: 8px;
  }
  .brand > svg {
    width: 28px;
    height: 28px;
  }
  .workspace {
    box-shadow: none;
    border: 1.5px solid var(--ink);
    padding: 6px 8px;
    gap: 7px;
  }
  .workspace-logo {
    width: 26px;
    height: 26px;
    font-size: 24px;
    line-height: 23px;
    padding-left: 5px;
  }
  .workspace-logo > span {
    font-size: 11px;
    right: 2px;
  }
  .workspace > div > span {
    font-size: 9px;
  }
  .workspace-label,
  .sidebar-note,
  .sidebar-bottom {
    display: none;
  }
  nav {
    grid-column: 1/-1;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    gap: 12px;
  }
  .nav-link {
    font-size: 12px;
    padding: 11px;
    gap: 9px;
  }
  .nav-link:not(.active) {
    border: 1.5px solid var(--ink);
    background: var(--paper);
  }
  .nav-arrow {
    font-size: 17px;
  }
  .app-shell {
    margin-left: 0;
  }
  .topbar {
    height: 40px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 8px;
  }
  .demo-badge {
    font-size: 8px;
    padding: 5px 6px;
    gap: 5px;
  }
  .demo-date {
    display: none;
  }
  .demo-badge .status-dot {
    width: 5px;
    height: 5px;
  }
  main {
    padding: 28px 20px 0;
  }
  .page-intro {
    margin-bottom: 28px;
    gap: 10px;
    align-items: flex-start;
  }
  .page-intro .eyebrow {
    font-size: 7px;
    letter-spacing: 0.9px;
    gap: 6px;
  }
  .mini-square {
    height: 6px;
    width: 6px;
  }
  .page-intro h1 {
    font-size: 32px;
    letter-spacing: -1.4px;
    margin: 15px 0;
  }
  .page-intro p {
    font-size: 11px;
    max-width: 300px;
  }
  .intro-stamp {
    display: none;
  }
  .section-toolbar {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 17px;
  }
  .board-heading {
    padding-top: 10px;
    gap: 6px;
  }
  .board-heading strong {
    font-size: 11px;
  }
  .select-control {
    gap: 4px;
    padding: 6px;
  }
  .select-control select {
    font-size: 9px;
    max-width: 163px;
  }
  .select-control .icon {
    width: 13px !important;
    height: 13px !important;
  }
  .metrics {
    gap: 14px;
    margin-bottom: 24px;
  }
  .metric {
    padding: 15px 13px 13px;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .metric-head {
    font-size: 10px;
    gap: 4px;
  }
  .metric-head .icon {
    width: 15px;
    height: 15px;
  }
  .metric-number {
    font-size: 37px;
    margin: 12px 0 8px;
  }
  .metric-sub {
    font-size: 9px;
  }
  .metric-accent {
    width: 32px;
    bottom: 11px;
  }
  .analysis-grid {
    gap: 22px;
  }
  .panel-heading {
    padding: 20px 19px 0;
  }
  .panel-heading .eyebrow {
    font-size: 8px;
  }
  .panel-heading h2 {
    font-size: 23px;
  }
  .panel-heading p {
    font-size: 10px;
  }
  .friction-chart {
    padding: 21px 19px;
  }
  .bar-caption {
    font-size: 10px;
  }
  .panel-foot {
    padding-inline: 19px;
    font-size: 8px;
    line-height: 1.5;
  }
  .sentiment-body {
    justify-content: center;
    padding: 22px 16px;
    gap: 27px;
  }
  .method-note {
    font-size: 9px;
  }
  .section-title {
    margin: 30px 0 17px;
  }
  .section-title h2 {
    font-size: 25px;
  }
  .section-title .eyebrow {
    font-size: 8px;
  }
  .insight-grid {
    gap: 17px;
  }
  .insight-card {
    padding: 20px;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .insight-card h3 {
    font-size: 22px;
  }
  .insight-card > p {
    font-size: 12px;
  }
  .insight-top {
    margin-bottom: 12px;
  }
  .insight-card > button {
    font-size: 11px;
  }
  .quotes-title {
    align-items: flex-start;
  }
  .quotes-title .text-button {
    font-size: 9px;
    gap: 7px;
    padding-top: 23px;
    white-space: nowrap;
  }
  .quotes-grid {
    gap: 15px;
  }
  .quote-card blockquote {
    font-size: 13px;
  }
  .quote-top .tag {
    font-size: 9px;
  }
  .quote-card > button {
    font-size: 10px;
  }
  .board-disclaimer {
    font-size: 9px;
    margin-bottom: 14px;
  }
  .page-footer {
    font-size: 8px;
    padding-block: 17px;
    flex-wrap: wrap;
  }
  .page-footer > span:last-child {
    font-size: 7px;
  }
  .data-intro {
    margin-bottom: 25px;
  }
  .data-stamp {
    width: 57px;
    height: 57px;
    margin-top: 32px;
    border-radius: var(--radius);
    flex-shrink: 0;
  }
  .data-stamp .icon {
    width: 28px;
    height: 28px;
  }
  .data-filters {
    padding: 13px;
  }
  .filter-row label {
    font-size: 9px;
  }
  .filter-row select {
    font-size: 10px;
  }
  .search-control input {
    font-size: 10px;
  }
  .table-heading {
    padding: 16px 13px;
    align-items: flex-start;
  }
  .table-heading h2 {
    font-size: 17px;
  }
  .table-heading p {
    font-size: 9px;
  }
  .table-heading .text-button {
    font-size: 8px;
    gap: 4px;
    padding-top: 3px;
  }
  .table-heading .text-button > span {
    font-size: 14px;
  }
  .pagination {
    font-size: 9px;
    padding: 12px;
  }
  .export-panel {
    padding: 23px;
  }
  .export-panel h2 {
    font-size: 31px;
  }
  .export-panel > p {
    font-size: 12px;
  }
  .export-count > span {
    font-size: 12px;
  }
  .format-options label {
    padding: 15px;
  }
  .format-options strong {
    font-size: 13px;
  }
  .format-options small {
    font-size: 9px;
  }
  .annotation-option strong {
    font-size: 12px;
  }
  .annotation-option small {
    font-size: 10px;
  }
  .export-panel .export-detail {
    font-size: 10px;
  }
  .export-button {
    font-size: 13px;
    padding: 15px;
  }
  .export-local {
    font-size: 9px;
  }
  .export-layout {
    gap: 24px;
  }
  .table-scroll {
    scrollbar-width: thin;
  }
  dialog {
    padding: 20px 18px 30px;
  }
  .drawer-summary h2 {
    font-size: 26px;
  }
  .message {
    padding: 13px;
    margin-right: 12px;
  }
  .message.user {
    margin-left: 12px;
  }
  .message > p {
    font-size: 12px;
  }
  #toast {
    left: 50%;
    width: max-content;
    max-width: calc(100% - 35px);
    font-size: 11px;
    bottom: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep the company identity at the bottom of the navigation. */
.sidebar-company {
  margin-top: auto;
  padding-top: 24px;
}
.sidebar-tagline {
  margin: 20px 3px 0;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.5px;
}
.sidebar-tagline > span {
  background: var(--main);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 2px;
}
.sidebar > nav {
  margin-top: 0;
}

/* Bring the insights board closer to the header and tighten its vertical rhythm. */
#main:has(> #board-view:not([hidden])) {
  padding-top: 20px;
}
#board-view .section-toolbar {
  margin-bottom: 14px;
}
#board-view .metrics {
  grid-template-columns: minmax(0, 2.5fr) minmax(210px, 1fr);
  align-items: stretch;
  margin-bottom: 20px;
}
#board-view .metric {
  padding-top: 16px;
  padding-bottom: 14px;
}
#board-view .metric-number {
  margin-top: 11px;
  margin-bottom: 8px;
}
/* Full progress tracks below the percentages; hatching shows the remainder to 100 %. */
#board-view .metric-value {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 11px 0 8px;
}
#board-view .metric-value .metric-number {
  margin: 0;
}
.metric-bar {
  display: block;
  width: 100%;
  height: 16px;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 2px 2px 0 var(--ink);
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--paper) 0 4px, var(--ink) 4px 5px);
}
.metric-bar-fill {
  display: block;
  width: calc(var(--value) * 1%);
  height: 100%;
  border-right: 1px solid var(--ink);
}
.metric-bar.yellow .metric-bar-fill {
  background: var(--sand);
}
.metric-bar.pink .metric-bar-fill {
  background: var(--main);
}
#board-view .panel-heading {
  padding-top: 18px;
}
#board-view .friction-chart {
  padding-top: 16px;
  padding-bottom: 14px;
  gap: 12px;
}
#board-view .sentiment-body {
  padding-top: 18px;
  padding-bottom: 14px;
}
#board-view .section-title {
  margin-top: 26px;
  margin-bottom: 16px;
}

.activity-card {
  overflow: hidden;
}
.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  border-bottom: 1px solid var(--neutral-line);
  padding-left: 18px;
}
.activity-header > div:first-child {
  align-self: center;
  padding: 13px 0;
}
.activity-header h2 {
  font-size: 18px;
  letter-spacing: -0.5px;
}
.activity-header p {
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted);
}
.activity-toggles {
  display: flex;
  flex-shrink: 0;
}
.activity-toggle {
  padding: 12px 16px;
  text-align: left;
  border-left: 1px solid var(--neutral-line);
  background: var(--paper);
  transition: background 0.15s;
}
.activity-toggle.sessions[aria-pressed='true'] {
  background: #f0bdd055;
}
.activity-toggle.requests[aria-pressed='true'] {
  background: #f7e6a355;
}
.activity-toggle:hover {
  background: var(--background);
}
.activity-toggle > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  white-space: nowrap;
}
.activity-toggle i,
.activity-tooltip i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  flex-shrink: 0;
}
.activity-toggle.sessions i,
.activity-tooltip i.sessions {
  background: var(--main);
}
.activity-toggle.requests i,
.activity-tooltip i.requests {
  background: var(--sand);
}
.activity-toggle[aria-pressed='false'] i {
  background: transparent;
}
.activity-toggle[aria-pressed='false'] > strong {
  color: var(--muted);
}
.activity-toggle > strong {
  display: block;
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1.15;
  margin-top: 5px;
}
.activity-plot {
  position: relative;
  height: 154px;
  margin: 10px 16px 5px 10px;
  touch-action: pan-y;
}
.activity-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.activity-gridline {
  stroke: var(--neutral-line);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}
.activity-axis {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 9px;
  fill: var(--muted);
}
.activity-area.sessions {
  fill: var(--main);
  fill-opacity: 0.45;
}
.activity-area.requests {
  fill: var(--sand);
  fill-opacity: 0.5;
}
.activity-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
}
.activity-line.requests {
  stroke: #92701e;
}
.activity-dot,
.activity-active-dot {
  stroke: var(--ink);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.activity-dot.sessions,
.activity-active-dot.sessions {
  fill: var(--main);
}
.activity-dot.requests,
.activity-active-dot.requests {
  fill: var(--sand);
}
.activity-cursor-line {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}
.activity-tooltip {
  position: absolute;
  top: 7px;
  margin-left: 10px;
  width: 178px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  pointer-events: none;
  z-index: 2;
  font-size: 10px;
}
.activity-tooltip.align-right {
  transform: translateX(-100%);
  margin-left: -10px;
}
.activity-tooltip > strong {
  display: block;
  margin-bottom: 9px;
  font-size: 10px;
}
.activity-tooltip > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.activity-tooltip > div > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.activity-tooltip > small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 9px;
  border-top: 1px solid var(--neutral-line);
  padding-top: 7px;
}
.activity-footer {
  border-top: 1px solid var(--neutral-line);
  padding: 9px 18px;
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
}
.activity-kpis {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-width: 0;
}
.activity-kpis .metric-number {
  font-size: 32px;
}
@media (max-width: 1100px) {
  #board-view .metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .activity-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
}
@media (max-width: 700px) {
  .activity-header {
    flex-wrap: wrap;
    gap: 0;
    padding-left: 0;
  }
  .activity-header > div:first-child {
    padding: 13px 14px;
    width: 100%;
  }
  .activity-toggles {
    width: 100%;
    border-top: 1px solid var(--neutral-line);
  }
  .activity-toggle {
    flex: 1;
    padding: 10px 14px;
  }
  .activity-toggle:first-child {
    border-left: 0;
  }
  .activity-toggle > strong {
    font-size: 25px;
  }
  .activity-plot {
    height: 145px;
    margin-right: 10px;
  }
  .activity-footer {
    padding-inline: 14px;
    font-size: 8px;
  }
}

@media (max-width: 700px) {
  .sidebar-company {
    grid-column: 1 / -1;
    padding-top: 0;
  }
  .sidebar-company .workspace {
    width: fit-content;
    margin-left: auto;
  }
}

/* Header copied from Paul's website branch (761ffc0), with business navigation.
   Floating card as on the landing (origin/website 86956ee), aligned on the dashboard content. */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  width: min(calc(100% - 48px), 1200px);
  min-height: 76px;
  margin: 20px auto 0;
  padding: 12px 16px 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.header-brand {
  flex-shrink: 0;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 26px;
  letter-spacing: -1px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--main);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 28px;
  line-height: 1;
  padding-bottom: 4px;
}
.brand-domain {
  font-weight: 500;
}
.brand-tagline {
  margin: 7px 0 0 52px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: 0;
}
.brand-tagline > span {
  color: var(--ink);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 0;
  flex: 1;
}
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 550;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}
.header-link span {
  margin-left: 5px;
}
.header-link.active {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--main);
}
.header-link:hover {
  text-decoration: underline;
}
.header-company {
  flex-shrink: 0;
  margin-left: auto;
}
.header-company .workspace {
  padding: 9px 12px;
  box-shadow: 2px 2px 0 var(--ink);
  min-width: 148px;
}
.header-company .workspace-logo.gradium-logo {
  padding: 0;
  border: 0;
  background: transparent;
  flex-shrink: 0;
}
.gradium-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}
.app-shell {
  margin-left: 0;
}
#main {
  max-width: 1248px;
  padding-right: 24px;
  padding-left: 24px;
}
#toast {
  left: 50%;
}
@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    top: 10px;
    width: calc(100% - 40px);
    min-height: 66px;
    margin-top: 14px;
    padding: 8px 10px 4px 14px;
    gap: 8px 12px;
  }
  .site-header .brand {
    font-size: 21px;
    gap: 9px;
  }
  .site-header .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 25px;
  }
  .brand-tagline {
    margin-left: 43px;
    font-size: 9px;
  }
  .header-company {
    grid-column: 2;
    grid-row: 1;
  }
  .header-company .workspace {
    min-width: 0;
    padding: 7px 9px;
    gap: 7px;
  }
  .header-company .workspace-logo {
    width: 26px;
    height: 26px;
    font-size: 24px;
    line-height: 23px;
    padding-left: 5px;
  }
  .header-company .workspace strong {
    font-size: 11px;
  }
  .header-company .workspace > div > span {
    font-size: 9px;
  }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    gap: 30px;
    border-top: 1px solid var(--neutral-line);
    padding-top: 4px;
  }
  .header-link {
    font-size: 12px;
    min-height: 36px;
  }
  #main {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* Compact raw-data workspace: keep the download in the first viewport. */
#main:has(> #data-view:not([hidden])) {
  padding-top: 24px;
}
#data-view .data-intro {
  margin-bottom: 22px;
  gap: 18px;
}
#data-view .data-intro h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 10px 0;
}
#data-view .data-intro p {
  font-size: 12px;
  margin: 0;
}
#data-view .data-stamp {
  width: 68px;
  height: 68px;
  margin: 0 14px 0 0;
}
#data-view .data-stamp .icon {
  width: 34px;
  height: 34px;
}
#data-view .export-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}
#data-view .raw-file-preview {
  min-height: 0;
  padding: 22px;
  gap: 12px;
}
#data-view .raw-file-preview > strong {
  font-size: 18px;
}
#data-view .raw-file-preview > p {
  font-size: 12px;
  line-height: 1.5;
}
#data-view .csv-sheet {
  width: 150px;
  padding: 16px;
  margin: 8px 0 12px;
  box-shadow: 5px 5px 0 var(--ink);
}
#data-view .csv-sheet > span {
  font-size: 14px;
}
#data-view .csv-sheet > strong {
  font-size: 36px;
  margin: 16px 0 14px;
  letter-spacing: -2px;
}
#data-view .csv-lines {
  height: 24px;
  margin-bottom: 8px;
}
#data-view .csv-sheet small {
  font-size: 6px;
  letter-spacing: 0;
}
#data-view .export-panel {
  position: relative;
  top: auto;
  padding: 22px;
}
#data-view .export-icon {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 30px;
  height: 30px;
  margin: 0;
}
#data-view .export-icon .icon {
  width: 17px;
  height: 17px;
}
#data-view .export-panel h2 {
  font-size: 25px;
  line-height: 1.15;
  margin: 12px 0 8px;
}
#data-view .export-panel > p {
  font-size: 11px;
  line-height: 1.5;
  margin: 8px 0;
}
#data-view .export-count {
  margin: 12px 0;
  padding-bottom: 10px;
}
#data-view .export-count strong {
  font-size: 28px;
}
#data-view .export-count > span {
  font-size: 11px;
}
#data-view .format-options legend {
  margin-bottom: 7px;
}
#data-view .format-options label {
  padding: 8px 10px;
}
#data-view .format-options strong {
  font-size: 11px;
}
#data-view .format-options small {
  font-size: 9px;
  margin-top: 2px;
}
#data-view .export-panel .export-detail {
  font-size: 10px;
  margin: 10px 0 12px;
}
#data-view .export-button {
  min-height: 42px;
  padding: 10px;
  font-size: 12px;
}
#data-view .export-local {
  font-size: 9px;
  margin-top: 12px;
}
#main:has(> #data-view:not([hidden])) .page-footer {
  margin-top: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}
@media (max-width: 1050px) and (min-width: 701px) {
  #data-view .export-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
  }
}
@media (max-width: 700px) {
  body:has(#data-view:not([hidden])) .sidebar {
    padding: 14px 20px;
    gap: 12px;
  }
  body:has(#data-view:not([hidden])) .sidebar .brand {
    font-size: 28px;
  }
  body:has(#data-view:not([hidden])) .sidebar-company {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  body:has(#data-view:not([hidden])) .sidebar-company .workspace {
    margin: 0;
    flex-shrink: 0;
  }
  body:has(#data-view:not([hidden])) .sidebar-tagline {
    margin: 0;
    font-size: 12px;
    letter-spacing: -0.2px;
  }
  #main:has(> #data-view:not([hidden])) {
    padding-top: 16px;
  }
  #data-view .data-intro {
    margin-bottom: 16px;
  }
  #data-view .data-intro h1 {
    font-size: 27px;
    margin: 7px 0;
  }
  #data-view .data-intro .eyebrow {
    font-size: 8px;
  }
  #data-view .data-intro p {
    font-size: 11px;
    line-height: 1.4;
  }
  #data-view .data-stamp {
    width: 44px;
    height: 44px;
    margin-right: 3px;
  }
  #data-view .data-stamp .icon {
    width: 24px;
    height: 24px;
  }
  #data-view .export-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 8px;
  }
  #data-view .raw-file-preview {
    position: relative;
    align-items: flex-start;
    padding: 14px 14px 14px 92px;
    gap: 6px;
    text-align: left;
    min-height: 100px;
  }
  #data-view .raw-file-preview > .eyebrow {
    font-size: 7px;
  }
  #data-view .raw-file-preview > strong {
    font-size: 14px;
  }
  #data-view .raw-file-preview > p {
    font-size: 10px;
    line-height: 1.4;
  }
  #data-view .raw-file-preview > p br {
    display: none;
  }
  #data-view .csv-sheet {
    position: absolute;
    left: 17px;
    top: 15px;
    width: 54px;
    padding: 6px;
    margin: 0;
    box-shadow: 3px 3px 0 var(--ink);
  }
  #data-view .csv-sheet > span {
    font-size: 6px;
  }
  #data-view .csv-sheet > strong {
    font-size: 17px;
    letter-spacing: -1px;
    margin: 8px 0 4px;
  }
  #data-view .csv-lines {
    height: 8px;
    margin-bottom: 0;
  }
  #data-view .csv-sheet small {
    display: none;
  }
  #data-view .export-panel {
    padding: 12px;
  }
  #data-view .export-panel h2 {
    font-size: 22px;
    margin: 8px 0;
  }
  #data-view .export-panel h2 br {
    display: none;
  }
  #data-view .export-panel > p {
    font-size: 11px;
    margin: 6px 0;
  }
  #data-view .export-count {
    margin: 6px 0;
    padding-bottom: 4px;
  }
  #data-view .export-count strong {
    font-size: 25px;
  }
  #data-view .export-panel .export-detail {
    margin: 8px 0 10px;
  }
  #data-view .export-local {
    margin-top: 8px;
    font-size: 8px;
  }
  #data-view .format-options label {
    padding: 5px 10px;
  }
  #data-view .format-options small {
    display: inline;
    margin: 0 0 0 6px;
  }
  #main:has(> #data-view:not([hidden])) .page-footer {
    padding-block: 8px;
  }
}

/* A compact footer with the same Kosmo mark as the header. */
.page-footer,
#main:has(> #data-view:not([hidden])) .page-footer {
  margin-top: 0;
  padding-block: 6px;
}
.footer-brand .brand-mark {
  width: 24px;
  height: 24px;
  padding-bottom: 2px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
#board-view .board-disclaimer {
  margin-bottom: 8px;
  padding-bottom: 4px;
}

.export-period {
  border: 0;
  padding: 0;
  margin: 14px 0 12px;
  min-width: 0;
}
.export-period legend {
  padding: 0;
  margin-bottom: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.export-date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.export-date-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
}
.export-date-fields select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 5px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

/* Keep the complete export workspace within the viewport. */
body:has(#data-view:not([hidden])) {
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
body:has(#data-view:not([hidden])) .site-header {
  flex-shrink: 0;
}
body:has(#data-view:not([hidden])) .app-shell {
  flex: 1;
  min-height: 0;
}
#main:has(> #data-view:not([hidden])) {
  width: 100%;
  height: 100%;
  padding-top: 12px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#data-view:not([hidden]) {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#data-view .export-layout {
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  margin-bottom: 8px;
  gap: 14px;
}
#main:has(> #data-view:not([hidden])) .page-footer {
  flex-shrink: 0;
  padding-block: 4px;
}
#data-view .export-panel {
  padding: 16px;
}
#data-view .export-panel h2 {
  font-size: 23px;
  margin: 8px 0 6px;
}
#data-view .export-panel > p {
  margin: 6px 0;
}
#data-view .export-period {
  margin: 10px 0 8px;
}
#data-view .export-count {
  margin: 8px 0;
  padding-bottom: 6px;
}
#data-view .format-options legend {
  margin-bottom: 4px;
}
#data-view .format-options label {
  padding-block: 6px;
}
#data-view .export-panel .export-detail {
  margin: 8px 0;
}
#data-view .export-local {
  margin-top: 8px;
}
@media (max-width: 760px) {
  #data-view .export-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
  }
  #data-view .raw-file-preview {
    min-height: 78px;
    padding: 10px 12px 10px 76px;
    gap: 4px;
  }
  #data-view .csv-sheet {
    top: 10px;
    left: 14px;
    width: 46px;
    padding: 5px;
  }
  #data-view .csv-sheet > strong {
    font-size: 14px;
    margin: 6px 0 3px;
  }
  #data-view .export-panel {
    padding: 12px;
  }
  #data-view .export-panel h2 {
    font-size: 20px;
    margin: 6px 0;
  }
  #data-view .export-count strong {
    font-size: 24px;
  }
  #data-view .export-panel > p {
    margin-block: 4px;
  }
  #data-view .export-period {
    margin: 8px 0 6px;
  }
  #data-view .export-count {
    margin: 6px 0;
  }
  #data-view .export-date-fields select {
    min-height: 36px;
    padding-block: 6px;
  }
  #data-view .export-local {
    margin-top: 6px;
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  #main:has(> #data-view:not([hidden])) {
    padding-top: 8px;
    padding-bottom: 4px;
  }
  #data-view .raw-file-preview {
    min-height: 64px;
    padding-block: 8px;
  }
  #data-view .raw-file-preview > p,
  #data-view .export-panel > p:not(.export-detail) {
    display: none;
  }
  #data-view .export-panel {
    padding: 10px;
  }
  #data-view .export-period {
    margin: 6px 0;
  }
  #data-view .export-period legend {
    margin-bottom: 4px;
  }
  #data-view .export-count {
    margin: 6px 0;
    padding-bottom: 4px;
  }
  #data-view .export-date-fields select {
    min-height: 34px;
    padding-block: 5px;
  }
  #data-view .export-local {
    display: none;
  }
  #data-view .csv-sheet {
    top: 8px;
    width: 38px;
    padding: 4px;
  }
  #data-view .csv-sheet > strong {
    font-size: 12px;
    margin: 4px 0 3px;
  }
}
