/* Product · 03 / Day to day · editorial product snapshot */

.day-story {
  --story-ink: #1e211f;
  --story-muted: #828884;
  --story-line: #e3e6e4;
  --story-peach: #fff0e8;
  --story-orange: #ffab78;
  position: relative;
  z-index: 1;
  container-name: day-dashboard;
  container-type: inline-size;
  height: clamp(630px, calc(100svh - 120px), 720px);
  min-height: 630px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  background: #fbfbfa;
  color: var(--story-ink);
  box-shadow:
    0 -1px 0 rgba(10, 11, 12, 0.36),
    0 1px 0 rgba(8, 9, 10, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.measurement-kpi-map--dashboard .day-story {
  height: clamp(500px, 40vw, 570px);
  min-height: 0;
}

.day-story__topbar {
  min-height: 62px;
  flex: 0 0 auto;
  padding: 0 18px;
  border-bottom: 1px solid var(--story-line);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  background: #fff;
}

.day-story__brand img {
  width: 88px;
  height: auto;
  display: block;
}

.day-story__workspace {
  justify-self: start;
  min-width: 158px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--story-line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
}

.day-story__workspace > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.day-story__workspace strong {
  font-size: 9px;
  font-weight: 600;
}

.day-story__workspace small {
  color: var(--story-muted);
  font-size: 6px;
}

.day-story__workspace > i {
  order: -1;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid var(--story-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 7px;
  font-style: normal;
  font-weight: 650;
}

.day-story__autopilot,
.day-story__live,
.day-story__system,
.day-story__foot span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.day-story__autopilot {
  justify-self: end;
  color: #696d4c;
  font: 500 6px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-story__autopilot i,
.day-story__live i,
.day-story__system i,
.day-story__foot i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #aeb58a;
  box-shadow: 0 0 0 3px rgba(174, 181, 138, 0.15);
}

.day-story__layout {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr);
}

.day-story__sidebar {
  min-height: 0;
  padding: 22px 13px 15px;
  border-right: 1px solid var(--story-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
}

.day-story__sidebar nav {
  display: grid;
  gap: 5px;
}

.day-story__sidebar nav > span {
  position: relative;
  min-height: 37px;
  padding: 0 11px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7b817d;
  font-size: 9px;
  font-weight: 500;
}

.day-story__sidebar nav > span.is-active {
  color: var(--story-ink);
  background: var(--story-peach);
}

.day-story__sidebar nav > span.is-active::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px -13px;
  width: 2px;
  border-radius: 2px;
  background: var(--story-orange);
}

.day-story__sidebar nav i {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.78;
}

.day-story__sidebar nav i::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: skewY(-24deg);
}

.day-story__system {
  padding: 13px 7px 0;
  border-top: 1px solid var(--story-line);
  color: #7b817d;
  font-size: 7px;
  line-height: 1.3;
}

.day-story__system i {
  width: 5px;
  height: 5px;
}

.day-story__main {
  min-width: 0;
  min-height: 0;
  padding: 24px 26px 28px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 35, 33, 0.18) transparent;
  background: #fafaf8;
}

.day-story__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.day-story__heading > div:first-child {
  display: grid;
  gap: 4px;
}

.day-story__heading h3,
.day-story__heading p,
.day-story__card h4,
.day-story__card p,
.day-story__journey h4 {
  margin: 0;
}

.day-story__heading h3 {
  font-size: clamp(21px, 2.1vw, 28px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.day-story__heading p {
  color: var(--story-muted);
  font-size: 8px;
}

.day-story__filters {
  display: flex;
  gap: 7px;
}

.day-story__filters span {
  min-width: 105px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--story-line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #606662;
  background: #fff;
  font-size: 6px;
}

.day-story__filters i {
  color: #999e9a;
  font-style: normal;
}

.day-story__metrics {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.day-story__metrics > div,
.day-story__card,
.day-story__intent,
.day-story__pages {
  border: 1px solid var(--story-line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 22px -20px rgba(31, 35, 33, 0.28);
}

.day-story__metrics > div {
  min-width: 0;
  min-height: 91px;
  padding: 13px 14px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.day-story__metrics dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #868b87;
  font: 500 5.5px/1 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.day-story__metrics dt i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #373b38;
  background: var(--story-peach);
  font: 600 8px/1 var(--sans);
  font-style: normal;
}

.day-story__metrics dd {
  margin: 1px 0 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.day-story__metrics small {
  margin-top: auto;
  color: var(--story-muted);
  font-size: 5.5px;
}

.day-story__analytics {
  min-width: 0;
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(200px, 0.75fr);
  gap: 10px;
}

.day-story__card {
  min-width: 0;
  min-height: 238px;
  padding: 16px;
}

.day-story__card > header,
.day-story__journey > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.day-story__card h4,
.day-story__journey h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.day-story__card p {
  margin-top: 4px;
  color: var(--story-muted);
  font-size: 6px;
  line-height: 1.35;
}

.day-story__chart-deltas {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.day-story__chart-deltas span {
  display: grid;
  gap: 2px;
}

.day-story__chart-deltas span + span {
  padding-left: 12px;
  border-left: 1px solid var(--story-line);
}

.day-story__chart-deltas small {
  color: #929793;
  font: 500 7px/1 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.day-story__chart-deltas strong {
  color: #5f6965;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.day-story__chart-deltas .is-agent strong {
  color: #b9683d;
}

.day-story__chart {
  position: relative;
  height: 145px;
  margin-top: 14px;
  padding: 0 0 18px 28px;
}

.day-story__chart::before {
  content: "";
  position: absolute;
  inset: 0 0 18px 28px;
  background: repeating-linear-gradient(to bottom, #edf0ee 0 1px, transparent 1px 36px);
}

.day-story__chart canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.day-story__chart-labels {
  position: absolute;
  z-index: 2;
  inset: 0 0 18px 28px;
  pointer-events: none;
}

.day-story__chart-labels span {
  position: absolute;
  right: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(227, 230, 228, 0.8);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6f7773;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 12px -10px rgba(31, 35, 33, 0.45);
  font-size: 7px;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(5px);
}

.day-story__chart-labels span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 4px;
  height: 1px;
  background: currentColor;
}

.day-story__chart-labels .is-agent {
  top: 25%;
  color: #b9683d;
}

.day-story__chart-labels .is-human {
  top: 7%;
}

.day-story__chart-labels i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.day-story__chart-labels strong {
  color: currentColor;
  font-weight: 650;
}

.day-story__chart-y {
  position: absolute;
  inset: 0 auto 18px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #a0a5a1;
  font-size: 5px;
}

.day-story__chart-x {
  position: absolute;
  inset: auto 0 0 28px;
  display: flex;
  justify-content: space-between;
  color: #969c98;
  font-size: 5px;
}

.day-story__mix ol {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 15px;
  list-style: none;
}

.day-story__mix li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  color: #717773;
  font-size: 6.5px;
}

.day-story__mix li strong {
  color: #434844;
  font-size: 6.5px;
  font-weight: 600;
}

.day-story__mix li i {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 3px;
  background: #f0f2f1;
}

.day-story__mix li i::before {
  content: "";
  width: var(--share);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--tone);
}

.day-story__intent {
  margin-top: 10px;
  padding: 16px;
}

.day-story__intent > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.day-story__intent header > div {
  display: grid;
  gap: 4px;
}

.day-story__intent h4,
.day-story__intent p {
  margin: 0;
}

.day-story__intent h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.day-story__intent header p {
  color: var(--story-muted);
  font-size: 6px;
}

.day-story__intent header > strong {
  display: grid;
  justify-items: end;
  color: #a8653f;
  font-size: 15px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.day-story__intent header > strong small {
  margin-top: 5px;
  color: #919692;
  font: 500 5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-story__intent ol {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.day-story__intent li {
  min-width: 0;
  padding: 2px 13px 0;
  display: grid;
  gap: 7px;
}

.day-story__intent li:first-child {
  padding-left: 0;
}

.day-story__intent li:last-child {
  padding-right: 0;
}

.day-story__intent li + li {
  border-left: 1px solid var(--story-line);
}

.day-story__intent li > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.day-story__intent li > div span {
  overflow: hidden;
  font-size: 7px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-story__intent li > div strong {
  color: #565b57;
  font-size: 7px;
  font-weight: 600;
}

.day-story__intent li p {
  min-height: 27px;
  color: #858a86;
  font-size: 5.5px;
  line-height: 1.45;
}

.day-story__intent li > i {
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f2f1;
}

.day-story__intent li > i::before {
  content: "";
  width: var(--intent-share);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--intent-tone);
}

.day-story__intent li > small {
  color: #989d99;
  font: 500 5px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.day-story__intent-table {
  margin-top: 13px;
  border-top: 1px solid var(--story-line);
}

.day-story__intent-row {
  min-height: 43px;
  border-bottom: 1px solid var(--story-line);
  display: grid;
  grid-template-columns: minmax(160px, 1.6fr) 0.55fr 0.45fr 0.78fr 0.72fr 0.48fr;
  align-items: center;
  gap: 10px;
  color: #747a76;
  font-size: 6px;
}

.day-story__intent-row--head {
  min-height: 27px;
  color: #999e9a;
  font: 500 5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-story__intent-row > span:first-child {
  min-width: 0;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  gap: 2px 7px;
  align-items: center;
}

.day-story__intent-row > span:first-child > i {
  width: 6px;
  height: 6px;
  grid-row: 1 / 3;
  border-radius: 50%;
  background: var(--intent-tone);
}

.day-story__intent-row > span:first-child b {
  overflow: hidden;
  color: #3d423e;
  font-size: 6.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-story__intent-row > span:first-child small {
  overflow: hidden;
  color: #9a9f9b;
  font-size: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-story__intent-row > strong {
  color: #454a46;
  font-size: 6.5px;
  font-weight: 600;
}

.day-story__intent-row code {
  width: max-content;
  padding: 3px 5px;
  border-radius: 4px;
  color: #69706b;
  background: #f3f4f2;
  font: 500 5.5px/1 var(--mono);
}

.day-story__intent-row em {
  color: #73764f;
  font-size: 6px;
  font-style: normal;
  font-weight: 600;
}

.day-story__pages {
  margin-top: 10px;
  padding: 16px;
}

.day-story__pages > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.day-story__pages > header > div {
  display: grid;
  gap: 4px;
}

.day-story__pages h4,
.day-story__pages p {
  margin: 0;
}

.day-story__pages h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.day-story__pages p,
.day-story__pages > header > span {
  color: var(--story-muted);
  font-size: 6px;
}

.day-story__pages-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.day-story__pages-grid article + article {
  padding-left: 18px;
  border-left: 1px solid var(--story-line);
}

.day-story__pages-grid article > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6f7571;
  font-size: 6px;
}

.day-story__pages-grid article > header strong {
  color: #414642;
  font-size: 6px;
}

.day-story__pages-grid ol {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.day-story__pages-grid li {
  min-height: 35px;
  border-top: 1px solid var(--story-line);
  display: grid;
  grid-template-columns: minmax(90px, 0.85fr) minmax(80px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.day-story__pages-grid li > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.day-story__pages-grid li b {
  overflow: hidden;
  color: #4b504c;
  font-size: 6px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-story__pages-grid li code {
  color: #9a9f9b;
  font: 500 5px/1 var(--mono);
}

.day-story__pages-grid li > i {
  height: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: #f0f2f1;
}

.day-story__pages-grid li > i::before {
  content: "";
  width: var(--page-share);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--page-tone);
}

.day-story__pages-grid li > strong,
.day-story__pages-grid li > small {
  font-size: 5.5px;
}

.day-story__pages-grid li > strong {
  color: #444945;
}

.day-story__pages-grid li > small {
  color: #989d99;
}

.day-story__journey {
  margin-top: 10px;
  padding: 15px 16px 16px;
}

.day-story__journey header > div {
  display: grid;
  gap: 4px;
}

.day-story__journey header > div > span {
  color: #8a8f8b;
  font: 500 6px/1 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.day-story__live {
  color: #6b6e4e;
  font: 500 6px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-story__journey ol {
  margin: 13px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.day-story__journey li {
  position: relative;
  min-width: 0;
  min-height: 60px;
  padding: 9px 12px;
  border: 1px solid #eceeec;
  display: grid;
  align-content: center;
  gap: 3px;
  background: #fcfcfb;
}

.day-story__journey li:first-child {
  border-radius: 7px 0 0 7px;
}

.day-story__journey li:last-child {
  border-radius: 0 7px 7px 0;
  background: #f7f5ec;
}

.day-story__journey li + li {
  border-left: 0;
}

.day-story__journey li + li::before {
  content: "→";
  position: absolute;
  z-index: 1;
  left: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid #e8eae8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #949995;
  font-size: 7px;
  transform: translateY(-50%);
}

.day-story__journey small {
  color: #949995;
  font: 500 5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-story__journey li strong {
  overflow: hidden;
  font-size: 8px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-story__journey li span {
  overflow: hidden;
  color: #7f8581;
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-story__truth {
  min-height: 68px;
  margin-top: 10px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  background: #f8f7f0;
}

.day-story__truth > div:first-child {
  display: grid;
  gap: 7px;
}

.day-story__truth > div:first-child > strong {
  font-size: 9px;
  font-weight: 550;
}

.day-story__truth dl {
  margin: 0;
  display: flex;
  gap: 22px;
}

.day-story__truth dl > div {
  display: grid;
  gap: 4px;
}

.day-story__truth dt {
  color: #8b908c;
  font: 500 5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-story__truth dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.day-story__foot {
  min-height: 31px;
  flex: 0 0 auto;
  padding: 0 15px;
  border-top: 1px solid var(--story-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #969b97;
  background: #fff;
  font: 500 5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-story__foot i {
  width: 5px;
  height: 5px;
}

/* Typography calibrated to the visual scale of the product demo card. */

.day-story__autopilot,
.day-story__system {
  font-size: 9px;
}

.day-story__sidebar nav > span {
  font-size: 11px;
}

.day-story__heading h3 {
  font-size: clamp(22px, 2vw, 26px);
}

.day-story__heading p {
  font-size: 12px;
  line-height: 1.4;
}

.day-story__filters span {
  font-size: 10px;
}

.day-story__metrics dt {
  font-size: 9px;
}

.day-story__metrics dt i {
  font-size: 10px;
}

.day-story__metrics dd {
  font-size: clamp(25px, 2.2vw, 30px);
}

.day-story__metrics small {
  font-size: 10px;
  line-height: 1.3;
}

.day-story__card h4,
.day-story__intent h4,
.day-story__pages h4 {
  font-size: 14px;
}

.day-story__card p,
.day-story__intent header p,
.day-story__pages p,
.day-story__pages > header > span {
  font-size: 10px;
  line-height: 1.4;
}

.day-story__chart-deltas small {
  font-size: 8px;
}

.day-story__chart-deltas strong {
  font-size: 11px;
}

.day-story__chart-y,
.day-story__chart-x {
  font-size: 9px;
}

.day-story__chart-labels span {
  font-size: 9px;
}

.day-story__mix li,
.day-story__mix li strong {
  font-size: 10px;
}

.day-story__intent header > strong {
  font-size: 20px;
}

.day-story__intent header > strong small {
  font-size: 8px;
}

.day-story__intent-row {
  font-size: 10px;
}

.day-story__intent-row--head {
  font-size: 8px;
}

.day-story__intent-row > span:first-child b,
.day-story__intent-row > strong {
  font-size: 10px;
}

.day-story__intent-row > span:first-child small {
  font-size: 8px;
}

.day-story__intent-row code,
.day-story__intent-row em {
  font-size: 9px;
}

.day-story__pages-grid article > header,
.day-story__pages-grid article > header strong {
  font-size: 10px;
}

.day-story__pages-grid li b {
  font-size: 10px;
}

.day-story__pages-grid li code {
  font-size: 8px;
}

.day-story__pages-grid li > strong,
.day-story__pages-grid li > small {
  font-size: 9px;
}

@media (max-width: 1180px) {
  .day-story {
    height: 720px;
  }
}

/* The dashboard responds to the space it receives inside the product page. */

@container day-dashboard (max-width: 820px) {
  .day-story__layout {
    grid-template-columns: 138px minmax(0, 1fr);
  }

  .day-story__sidebar {
    padding-inline: 10px;
  }

  .day-story__sidebar nav > span {
    padding-inline: 9px;
  }

  .day-story__main {
    padding: 22px 20px 26px;
  }

  .day-story__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-story__analytics {
    grid-template-columns: 1fr;
  }

  .day-story__mix {
    min-height: 0;
  }

  .day-story__mix ol {
    margin-top: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .day-story__intent-row {
    grid-template-columns: minmax(150px, 1.5fr) 0.55fr 0.45fr 0.72fr 0.7fr;
  }

  .day-story__intent-row > :nth-child(6) {
    display: none;
  }

  .day-story__pages-grid {
    grid-template-columns: 1fr;
  }

  .day-story__pages-grid article + article {
    padding: 16px 0 0;
    border-top: 1px solid var(--story-line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .day-story {
    height: clamp(500px, 70svh, 600px);
    min-height: 0;
  }

  .day-story__topbar {
    grid-template-columns: 1fr auto;
    min-height: 56px;
    padding-inline: 14px;
  }

  .day-story__brand img {
    width: 80px;
  }

  .day-story__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .day-story__sidebar {
    min-width: 0;
    padding: 7px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--story-line);
    display: block;
    overflow: hidden;
  }

  .day-story__sidebar nav {
    padding-bottom: 2px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .day-story__sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .day-story__sidebar nav > span {
    min-width: max-content;
    min-height: 34px;
    flex: 0 0 auto;
    padding-inline: 12px;
    justify-content: center;
    font-size: 10px;
  }

  .day-story__sidebar nav > span.is-active::before,
  .day-story__system {
    display: none;
  }

  .day-story__main {
    min-height: 0;
    padding: 20px 16px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
  }

  .day-story__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-story__analytics {
    grid-template-columns: 1fr;
  }

  .day-story__metrics > div {
    min-height: 98px;
  }

  .day-story__mix ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
  }

  .day-story__intent-table {
    border-top: 0;
    display: grid;
    gap: 8px;
  }

  .day-story__intent-row--head {
    display: none;
  }

  .day-story__intent-row:not(.day-story__intent-row--head) {
    min-height: 0;
    padding: 12px;
    border: 1px solid var(--story-line);
    border-radius: 9px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px 10px;
    background: #fcfcfb;
  }

  .day-story__intent-row:not(.day-story__intent-row--head) > span:first-child {
    grid-column: 1 / -1;
  }

  .day-story__intent-row:not(.day-story__intent-row--head) > :not(:first-child) {
    min-width: 0;
    display: grid;
    gap: 4px;
    justify-items: start;
  }

  .day-story__intent-row:not(.day-story__intent-row--head) > :not(:first-child)::before {
    color: #a0a5a1;
    font: 500 8px/1 var(--mono);
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .day-story__intent-row > strong::before {
    content: "Visits";
  }

  .day-story__intent-row > :nth-child(3)::before {
    content: "Share";
  }

  .day-story__intent-row > :nth-child(4)::before {
    content: "Agent";
  }

  .day-story__intent-row > code::before {
    content: "Top page";
  }

  .day-story__intent-row > em::before {
    content: "Trend";
  }

  .day-story__intent-row code {
    width: auto;
    padding: 0;
    background: transparent;
  }

  .day-story__intent-row > :nth-child(6) {
    display: grid;
  }

  .day-story__journey ol {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .day-story__journey li,
  .day-story__journey li:first-child,
  .day-story__journey li:last-child {
    border: 1px solid #eceeec;
    border-radius: 7px;
  }

  .day-story__journey li + li::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .day-story__main {
    padding: 18px 14px 22px;
  }

  .day-story__heading {
    display: grid;
    gap: 14px;
  }

  .day-story__filters {
    width: 100%;
  }

  .day-story__filters span {
    min-width: 0;
    flex: 1 1 0;
  }

  .day-story__sidebar nav i {
    display: none;
  }

  .day-story__card {
    padding: 14px;
  }

  .day-story__card > header {
    display: grid;
    gap: 12px;
  }

  .day-story__chart-deltas {
    justify-content: flex-start;
  }

  .day-story__chart {
    height: 182px;
    margin-top: 18px;
  }

  .day-story__chart-labels span {
    font-size: 8px;
  }

  .day-story__intent > header {
    display: grid;
  }

  .day-story__intent header > strong {
    justify-items: start;
  }

  .day-story__pages-grid li {
    grid-template-columns: minmax(88px, 1fr) minmax(54px, 0.7fr) auto;
  }

  .day-story__pages-grid li > small {
    display: none;
  }

  .day-story__truth {
    grid-template-columns: 1fr;
  }

  .day-story__truth dl {
    justify-content: space-between;
    gap: 12px;
  }
}

/* Homepage · 04 / Measurable impact
   Keep the duplicated dashboard authoritative at every viewport size. */
.measurement-kpi-map--dashboard > .day-story {
  display: flex;
  visibility: visible;
  opacity: 1;
  height: clamp(500px, 40vw, 570px);
  min-height: 0;
}

@media (max-width: 1180px) {
  .measurement-kpi-map--dashboard > .day-story {
    height: clamp(500px, 58vw, 570px);
  }
}

@media (max-width: 760px) {
  .measurement-kpi-map--dashboard > .day-story {
    height: clamp(500px, 70svh, 600px);
  }
}
