/* Product discovery: a quiet workspace, with deliberate emphasis during the tour. */
.platform-page .intro { padding: 17px 0; gap: 24px; }
.platform-page .intro .eyebrow { margin-bottom: 5px; }
.platform-page .intro h1 { font-size: clamp(28px, 2.6vw, 36px); }
.platform-page .preview-footer { padding: 8px 2px 0; line-height: 16px; }
.platform-page .appbar { height: 44px; }
.platform-page .workspace-size {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  padding: 8px; border: 1px solid transparent; border-radius: 5px;
  transition: background .2s ease, border-color .2s ease;
}
.platform-page .workspace-size:hover { background: #ffffff09; border-color: #ffffff25; color: #fff; }
.platform-page .workspace-size .icon { width: 18px; height: 18px; }
.tour-replay { display: none; background: none; color: #b4c1b9; font-size: 11px; padding: 8px; }
.is-exploring:not(.is-touring) .tour-replay { display: inline-flex; }
.tour-replay:hover { color: var(--lime); }
.tour-start {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 13px;
  min-height: 48px; padding: 0 21px; overflow: hidden; border: 1px solid #d8ffa8;
  border-radius: 5px; background: #cdf888; color: #14200e;
  font: 650 12px/1.4 Manrope, sans-serif; white-space: nowrap;
  box-shadow: 0 0 0 0 #cdf88830;
  animation: start-beacon 2.5s ease-out .4s 3;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.tour-start::after {
  content: ''; position: absolute; inset: -100% auto -100% -60%; width: 35%;
  background: linear-gradient(90deg, transparent, #ffffff55, transparent);
  transform: skewX(-20deg); pointer-events: none; animation: start-sheen 6s ease 2;
}
.tour-start:hover { transform: translateY(-2px); background: #d9ffa6; box-shadow: 0 6px 28px #cdf8881c; }
.tour-start:active { transform: translateY(0); }
.tour-signal { position: relative; display: block; width: 18px; height: 18px; flex: none; }
.tour-signal i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #263d17; }
.tour-signal i:nth-child(1) { top: 0; left: 0; }
.tour-signal i:nth-child(2) { top: 0; right: 0; }
.tour-signal i:nth-child(3) { bottom: 0; left: 0; }
.tour-signal i:nth-child(4) { bottom: 0; right: 0; }
.tour-signal { animation: signal-gather 2.5s cubic-bezier(.2,.7,.2,1) .4s 3; }
@keyframes start-beacon { 0%,75%,100% { box-shadow: 0 0 0 0 #cdf88800; } 15% { box-shadow: 0 0 0 5px #cdf88820; } 55% { box-shadow: 0 0 0 13px #cdf88800; } }
@keyframes start-sheen { 0%,65% { left: -60%; } 90%,100% { left: 150%; } }
@keyframes signal-gather { 0%,70%,100% { transform: rotate(0) scale(1); } 35% { transform: rotate(90deg) scale(.7); } }

/* A chapter guide above the live UI, with a visual destination in the view below. */
.platform-page #tour {
  position: relative; display: grid; grid-template-columns: 58px minmax(0,1fr) auto;
  gap: 12px 22px; align-items: center; max-height: none; overflow: visible;
  padding: 20px 48px 13px 24px; border-bottom: 1px solid #cdf88835;
  background: radial-gradient(ellipse at 0 0, #cdf88812, transparent 60%), #131a1b;
  box-shadow: 0 9px 28px #00000018; z-index: 1;
}
.tour-chapter {
  position: relative; width: 58px; height: 58px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; isolation: isolate;
  color: #e4ffd1; font-family: D-DIN, sans-serif;
}
.tour-chapter::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 1px;
  background: conic-gradient(from -90deg, #cdf888 var(--progress), #ffffff14 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.tour-chapter span { font-size: 26px; line-height: 1; }
.tour-chapter small { color: #7d9082; font-size: 10px; margin-top: 2px; }
.tour-story { min-width: 0; }
.platform-page .app[data-transition-phase] #view { will-change: opacity, transform; }
#tour .tour-kicker { font: 10px/1.2 D-DIN, sans-serif; letter-spacing: .12em; color: #b1cf97; margin: 0 0 6px; }
#tour .tour-story h2 { font: 500 clamp(18px, 1.7vw, 23px)/1.2 Manrope, sans-serif; letter-spacing: -.04em; color: #f3f6ef; }
#tour .tour-description { font-size: 12px; line-height: 1.55; color: #acbbb2; margin: 7px 0 0; max-width: 610px; }
.tour-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
#tour .tour-next { min-height: 40px; padding: 10px 16px; border-color: #d2fa9e; background: #cdf888; color: #15230f; font-weight: 600; white-space: nowrap; }
#tour .tour-next:hover { background: #dfffba; box-shadow: 0 0 24px #cdf88818; }
#tour .tour-back { padding-inline: 0; border: 0; color: #a4b2aa; background: none; }
#tour .tour-back:hover { color: #fff; }
.tour-close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; background: transparent; color: #829289; border-radius: 4px; }
.tour-close:hover { color: #fff; background: #ffffff08; }
.tour-close .icon { width: 15px; height: 15px; }
.tour-progress { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; }
.tour-step { display: block; padding: 5px 0 0; min-width: 0; text-align: left; background: none; color: #718279; }
.tour-step-line { display: block; position: relative; height: 2px; background: #ffffff0c; overflow: hidden; border-radius: 1px; }
.tour-step-line::after { content: ''; position: absolute; inset: 0; background: #cdf888; transform: scaleX(0); transform-origin: left; }
.tour-step[aria-current='step'] .tour-step-line::after { animation: chapter-line .6s cubic-bezier(.2,.8,.2,1) both; }
.tour-step.is-complete .tour-step-line::after { transform: scaleX(1); opacity: .32; }
.tour-step-label { display: flex; gap: 7px; margin-top: 7px; font-size: 9px; white-space: nowrap; }
.tour-step-label b { font: 10px D-DIN, sans-serif; color: #65766b; }
.tour-step[aria-current='step'], .tour-step[aria-current='step'] b { color: #d9edcb; }
.tour-step:hover, .tour-step:hover b { color: #e1ebdc; }
.tour-focus { position: relative; outline: 1px solid #cdf88865; outline-offset: 6px; border-radius: 6px; animation: focus-arrive 1.6s ease-out 2; }
@keyframes chapter-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes focus-arrive { 0% { outline-color: #cdf888b0; box-shadow: 0 0 0 6px #cdf88809; } 55% { outline-color: #cdf88835; box-shadow: 0 0 0 12px #cdf88800; } 100% { outline-color: #cdf88865; box-shadow: 0 0 0 6px #cdf88800; } }

/* Today's complete overview: four panels share the available height on laptops. */
@media (min-width: 1000px) and (min-height: 680px) {
  .platform-page #view[data-view='hoy'] {
    display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr);
    grid-template-rows: auto auto minmax(142px,1.25fr) minmax(119px,1fr);
    gap: 10px 14px; padding: 14px 20px;
  }
  #view[data-view='hoy'] > .page-head, #view[data-view='hoy'] > .metrics { grid-column: 1 / -1; margin: 0; }
  #view[data-view='hoy'] .page-head h2 { font-size: 23px; line-height: 1.2; }
  #view[data-view='hoy'] .page-head p { font-size: 11px; margin-top: 3px; }
  #view[data-view='hoy'] .metric { padding-block: 8px; }
  #view[data-view='hoy'] .metric label { margin-bottom: 2px; }
  #view[data-view='hoy'] .metric strong { font-size: 24px; line-height: 1.2; }
  #view[data-view='hoy'] .metric small { font-size: 9px; margin-top: 3px; }
  #view[data-view='hoy'] .overview-grid, #view[data-view='hoy'] .bottom-grid { display: contents; }
  #view[data-view='hoy'] .panel { padding: 12px 14px; min-height: 0; display: flex; flex-direction: column; }
  #view[data-view='hoy'] .panel-title { margin-bottom: 7px; gap: 10px; }
  #view[data-view='hoy'] .panel-title h3 { font-size: 12px; }
  #view[data-view='hoy'] .chart { flex: 1; min-height: 0; height: auto; }
  #view[data-view='hoy'] .chart-note { font-size: 9px; margin-top: 3px; }
  #view[data-view='hoy'] .tasks { flex: 1; display: grid; grid-template-rows: repeat(3, 1fr); }
  #view[data-view='hoy'] .task { padding-block: 3px; gap: 8px; }
  #view[data-view='hoy'] .task:first-child { padding-top: 0; }
  #view[data-view='hoy'] .task:last-child { padding-bottom: 0; }
  #view[data-view='hoy'] .task strong { font-size: 11px; line-height: 1.3; }
  #view[data-view='hoy'] .task small { font-size: 10px; line-height: 1.3; margin-top: 2px; }
  #view[data-view='hoy'] .task .icon { width: 16px; height: 16px; }
  #view[data-view='hoy'] .funnel { height: auto; margin: 0; flex: 1; align-items: center; }
  #view[data-view='hoy'] .funnel b { font-size: 17px; line-height: 1.1; }
  #view[data-view='hoy'] .funnel i { margin-top: 5px; height: 3px; }
  #view[data-view='hoy'] .coordinator { margin-top: 7px; padding-top: 6px; gap: 8px; flex-wrap: nowrap; }
  #view[data-view='hoy'] .coordinator span { font-size: 10px; min-width: 0; }
  #view[data-view='hoy'] .coordinator .button { min-height: 25px; padding-block: 3px; font-size: 10px; }
  #view[data-view='hoy'] .panel-title .button { min-height: 22px; padding: 0; font-size: 10px; }
  #view[data-view='hoy'] .activity { flex: 1; gap: 5px; align-content: space-around; }
  #view[data-view='hoy'] .activity strong { font-size: 10px; line-height: 1.2; }
  #view[data-view='hoy'] .activity small { font-size: 9px; line-height: 1.2; margin-top: 2px; }
}
@media (max-width: 1100px) {
  .platform-page #tour { gap: 12px 16px; grid-template-columns: 46px minmax(0,1fr); padding: 16px 22px 11px; }
  .tour-chapter { width: 46px; height: 46px; }
  .tour-chapter span { font-size: 22px; }
  .tour-story { padding-right: 15px; }
  .tour-actions { grid-column: 2; justify-content: flex-start; }
  #tour .tour-next { min-height: 35px; padding-block: 8px; }
}
@media (max-width: 600px) {
  .platform-page .intro { padding: 16px 4px; }
  .platform-page .intro h1 { font-size: 28px; }
  .platform-page .intro-right { margin-top: 14px; }
  .tour-start { min-height: 44px; padding-inline: 17px; }
  .platform-page #tour { grid-template-columns: 32px minmax(0,1fr); padding: 13px 14px 10px; gap: 10px 11px; }
  .tour-chapter { width: 32px; height: 32px; align-self: start; margin-top: 4px; }
  .tour-chapter span { font-size: 16px; }
  .tour-chapter small { display: none; }
  #tour .tour-kicker { font-size: 8px; margin-bottom: 4px; }
  #tour .tour-story h2 { font-size: 18px; }
  #tour .tour-description { font-size: 11px; line-height: 1.45; margin-top: 6px; }
  .tour-actions { grid-column: 1 / -1; justify-content: flex-end; gap: 16px; }
  #tour .tour-next { font-size: 10px; }
  .tour-progress { gap: 5px; }
  .tour-step { padding-top: 0; }
  .tour-step-label { margin-top: 4px; justify-content: center; }
  .tour-step-label > span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tour-close { top: 3px; right: 3px; width: 28px; height: 28px; }
  .platform-page .appbar { height: 42px; }
  .platform-page .preview-footer { padding-block: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-start, .tour-start::after, .tour-signal, .tour-story, .tour-focus,
  .tour-step[aria-current='step'] .tour-step-line::after { animation: none; }
  .tour-step[aria-current='step'] .tour-step-line::after { transform: scaleX(1); }
  .tour-start:hover { transform: none; }
}

/* The plot stretches; its labels and points retain their own readable size. */
.chart-block { display: flex; flex-direction: column; min-height: 0; }
.chart-block .chart { height: 142px; }
.chart .chart-point { fill: none; stroke: var(--lime); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart polyline { vector-effect: non-scaling-stroke; }
.chart-axis { display: flex; justify-content: space-between; padding: 4px 5% 0; color: #819196; font-size: 9px; line-height: 14px; }
@media (min-width: 1000px) and (min-height: 680px) {
  #view[data-view='hoy'] .chart-block { flex: 1; }
  #view[data-view='hoy'] .chart { height: auto; flex: 1; }
}
@media (min-width: 841px) {
  .platform-page .rail { padding-block: 16px; }
  .platform-page .workspace { margin-bottom: 18px; }
  .platform-page .rail nav { gap: 4px; }
  .platform-page .rail nav button { padding-block: 8px; }
  .platform-page .rail-end { padding-top: 20px; }
}

/* Each guided chapter isolates its live product surface; free exploration stays complete. */
.is-touring #view > .page-head { display: none; }
#view[data-tour='0'] .recommendation,
#view[data-tour='3'] .campaign-results,
#view[data-tour='2'] > .filterbar,
#view[data-tour='2'] > .coordinator,
#view[data-tour='4'] > .coordinator,
#view[data-tour='5'] > .insight,
#view[data-tour='5'] > p { display: none; }
#view[data-tour='0'] .campaign-results { margin-block: 8px; }
#view[data-tour='3'] { display: grid; align-content: center; }
#view[data-tour='3'] .recommendation { margin: 0; padding: 26px; }
#view[data-tour='1'] { display: flex; flex-direction: column; }
#view[data-tour='1'] .inbox { min-height: 0; flex: 1; }
#view[data-tour='1'] .chat-main { min-height: 0; }
#view[data-tour='1'] .thread { min-height: 0; max-height: none; }
#view[data-tour='1'] .composer { display: none; }
#view[data-tour='2'] .board { min-height: 0; }
#view[data-tour='4'] .content-layout { gap: 24px; }
#view[data-tour='6'] .agent-card { padding: 17px; }
#view[data-tour='6'] .agent-card .job { margin-top: 12px; min-height: 0; }
#view[data-tour='6'] .agent-card footer { margin-top: 12px; padding-top: 10px; }
@media (max-width: 600px) {
  #view[data-tour='1'] { display: block; }
  #view[data-tour='1'] .inbox { overflow: visible; }
  #view[data-tour='1'] .thread { max-height: none; }
  #view[data-tour='3'] .recommendation { padding: 17px; }
}

@media (min-width: 1000px) and (min-height: 680px) {
  .platform-page #view[data-view='hoy'] { grid-template-rows: auto auto minmax(156px,1.25fr) minmax(136px,1fr); }
}
@media (min-width: 1000px) and (max-height: 800px) {
  .platform-page .intro { padding-block: 8px; }
  .platform-page .intro .eyebrow { display: none; }
  .platform-page .intro h1 { font-size: 32px; }
}
@media (min-width: 1000px) and (max-height: 719px) {
  .platform-page .intro { display: none; }
  .platform-page:not(.is-touring) .tour-replay { display: inline-flex; }
}

#view[data-tour='1'] .thread { padding: 14px; gap: 8px; }
#view[data-tour='1'] .message { padding: 8px 11px; line-height: 1.5; }
#view[data-tour='1'] .message small { margin-bottom: 3px; }
#view[data-tour='1'] .handoff { padding: 2px; }

.tour-step { min-height: 28px; }
@media (min-width: 841px) {
  #view[data-tour='4'] .content-form h3 { font-size: 17px; margin: 6px 0 12px; }
  #view[data-tour='4'] .content-form textarea { min-height: 82px; height: 82px; }
  #view[data-tour='4'] .content-form .field { margin-bottom: 12px; }
  #view[data-tour='4'] .details-strip { margin-block: 12px; padding-block: 10px; }
  #view[data-tour='5'] .metrics { margin-bottom: 12px; }
  #view[data-tour='5'] .metric { padding-block: 10px; }
  #view[data-tour='5'] .metric strong { font-size: 23px; }
  #view[data-tour='5'] .metric small { font-size: 9px; }
  #view[data-tour='6'] .agent-grid { gap: 12px; }
  #view[data-tour='6'] .agent-card { padding: 15px; }
  #view[data-tour='6'] .agent-card footer { padding-top: 8px; }
}
@media (min-width: 841px) {
  #view[data-tour='2'] .lead-card { padding-block: 11px; margin-bottom: 7px; }
  #view[data-tour='2'] .lead-card .card-bottom { margin-top: 10px; }
  #view[data-tour='2'] .stage-col { padding-bottom: 6px; }
}
