/* Native hero windows, carried over from the reviewed HTML sketches. */

/* Match the visible window frames in the original Perplexity PNGs. Their
   transparent gutters include the shadow and are part of the slot dimensions. */
[data-local-section="hero"] [data-selfgrow-hero-slot] {
  overflow: visible;
}

[data-local-section="hero"] :is(.sg-hp-piece, .sg-hc-piece, .sg-he-piece) {
  --frame: #fdfcfa;
  --line: #e8e7e3;
}

[data-local-section="hero"] .sg-hp-piece { --frame: #faf8f6; }
[data-local-section="hero"] .sg-he-piece { --frame: #fdfbfa; }

[data-local-section="hero"] :is(.sg-hp-app, .sg-hc-app, .sg-he-card) {
  background: var(--frame);
  border: 1.5px solid #d9dedc;
  box-shadow: 0 2px 3px rgb(0 0 0 / 3%), 0 7px 12px -4px rgb(0 0 0 / 7%);
}

[data-local-section="hero"] .sg-hp-app {
  border-color: #dedfdd;
  border-radius: clamp(8px, 2.8cqw, 14px);
}

[data-local-section="hero"] .sg-hc-app {
  border-radius: clamp(7px, 5.6cqw, 12.5px);
}

[data-local-section="hero"] .sg-he-card {
  border-radius: clamp(8px, 3.9cqw, 14px);
}

@media (min-width: 810px) {
  [data-local-section="hero"] :is(.sg-hp-piece, .sg-hc-piece, .sg-he-piece) {
    width: auto;
    height: auto;
  }

  /* Opaque bounds measured in each original asset, in top/right/bottom/left order. */
  [data-local-section="hero"] .sg-hp-piece {
    inset: 2.32678% 2.70927% 5.68769% 2.70927%;
  }

  [data-local-section="hero"] .sg-hc-piece {
    inset: 2.96804% 5.30660% 7.19178% 5.24764%;
  }

  [data-local-section="hero"] .sg-he-piece {
    inset: 4.03587% 3.87674% 9.86547% 3.82704%;
  }
}

/* Keep the existing mobile areas and text layout readable. */
@media (max-width: 809.98px) {
  [data-local-section="hero"] :is(.sg-hp-app, .sg-hc-app, .sg-he-card) {
    border-width: 1px;
  }
}





/* Primary window: W is the untransformed surface width; u = W / 125.
   One proportional layout is shared by desktop, tablet and the mobile canvas.
   See docs/landing/hero-primary-symmetry/MAP.md for the measured geometry. */
.sg-hp-piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  container-type: inline-size;
  --ink: #233650;
  --muted: #687a91;
  --line: #e5ebf3;
  --frame: #fff;
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: normal;
  color: var(--ink);
  font-synthesis: none;
  text-align: left;
}
.sg-hp-piece, .sg-hp-piece * { box-sizing: border-box; }
.sg-hp-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sg-hp-icon {
  width: 2.4cqw;
  height: 2.4cqw;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sg-hp-app {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 8cqw minmax(0, 1fr);
  overflow: hidden;
}
.sg-hp-app-bar {
  display: flex;
  align-items: center;
  padding-inline: 4cqw;
  border-bottom: 1px solid var(--line);
}
.sg-hp-brand { display: flex; align-items: center; gap: 1.6cqw; }
.sg-hp-logo {
  display: block;
  width: 3.2cqw;
  height: 3.9cqw;
  object-fit: contain;
  flex: none;
  filter: none !important;
}
.sg-hp-wordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: 3.2cqw;
  line-height: 1;
}
.sg-hp-app-body { display: grid; min-width: 0; min-height: 0; }
.sg-hp-content {
  min-width: 0;
  min-height: 0;
  padding: 4cqw;
  display: flex;
  flex-direction: column;
}
.sg-hp-record-heading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 3.2cqw;
  padding-bottom: 2.4cqw;
  border-bottom: 1px solid var(--line);
}
.sg-hp-identity {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  min-width: 0;
}
.sg-hp-profile {
  position: relative;
  width: 6.4cqw;
  height: 6.4cqw;
  flex: none;
}
.sg-hp-avatar {
  width: 6.4cqw;
  height: 6.4cqw;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #dce7f5;
  border-radius: 50%;
  background: #edf4ff;
  color: #557ba8;
  font-size: 2.2cqw;
  font-weight: 500;
}
.sg-hp-identity h2 {
  margin: 0;
  font-size: 3.6cqw;
  letter-spacing: -.04cqw;
  line-height: 1.2;
  font-weight: 600;
}
.sg-hp-source {
  position: absolute;
  right: -.4cqw;
  bottom: -.4cqw;
  width: 3.2cqw;
  height: 3.2cqw;
  padding: .5cqw;
  border-radius: 50%;
  background: var(--frame);
  color: #e1306c;
  fill: currentColor;
  stroke: none;
}
.sg-hp-result { display: flex; flex-direction: column; align-items: flex-end; gap: .8cqw; min-width: 0; }
.sg-hp-result-status {
  display: flex;
  align-items: center;
  gap: .8cqw;
  padding: 1.2cqw 1.6cqw;
  color: #247354;
  border: 1px solid #d3e6da;
  border-radius: 1.2cqw;
  background: #edf7f0;
  font-size: 2.4cqw;
  line-height: 1.25;
  font-weight: 600;
  white-space: nowrap;
}
.sg-hp-result-status .sg-hp-icon { stroke-width: 2; }
.sg-hp-result-date { color: var(--muted); font-size: 2.1cqw; line-height: 1.3; }
.sg-hp-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.2cqw;
  margin: 2.4cqw 0 0;
}
.sg-hp-context dt { margin: 0 0 .8cqw; color: var(--muted); font-size: 2.1cqw; line-height: 1.3; }
.sg-hp-context dd { margin: 0; color: #354c68; font-size: 2.5cqw; line-height: 1.4; }
.sg-hp-activity {
  margin-top: .8cqw;
  min-height: 0;
}
.sg-hp-events {
  display: flex;
  flex-direction: column;
  gap: 1.6cqw;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sg-hp-event {
  display: grid;
  gap: .8cqw;
  min-width: 0;
  padding: 1.6cqw 2.4cqw;
  border: 1px solid #e2e5e8;
  border-radius: 1.6cqw;
  background: #f1f3f5;
}
.sg-hp-question { width: 100%; }
.sg-hp-confirmation {
  /* The final message begins beyond the chat overlap at every hero size. */
  width: 64%;
  align-self: flex-end;
  border-color: #d3e6da;
  background: #edf7f0;
}
.sg-hp-event-meta { display: flex; align-items: center; justify-content: space-between; gap: 1.6cqw; min-width: 0; }
.sg-hp-event-title {
  display: flex;
  align-items: center;
  gap: .8cqw;
  margin: 0;
  color: var(--muted);
  font-size: 2cqw;
  line-height: 1.25;
  font-weight: 500;
}
.sg-hp-event-title .sg-hp-icon { width: 2.1cqw; height: 2.1cqw; }
.sg-hp-confirmation .sg-hp-event-title { color: #247354; }
.sg-hp-event-description { margin: 0; color: var(--ink); font-size: 2.8cqw; line-height: 1.35; }
.sg-hp-event-time { color: var(--muted); font-size: 1.9cqw; line-height: 1.3; text-align: right; font-variant-numeric: tabular-nums; }

.sg-hc-piece{width: min(100%, 243px); container-type: inline-size;}

.sg-hc-app{width: 100%; aspect-ratio: 243 / 251; display: grid; grid-template-rows: 40px 21px minmax(0px, 1fr); overflow: hidden; border: 1px solid rgb(220, 227, 237); border-radius: 7px; background: var(--frame); box-shadow: rgba(23, 43, 77, 0.03) 0px 2px 5px, rgba(24, 62, 106, 0.19) 0px 16px 34px -25px;}
.sg-hc-contact{display: flex; align-items: center; gap: 8px; padding: 0px 12px; border-bottom: 1px solid var(--line); min-width: 0px;}
.sg-hc-avatar{width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border: 1px solid rgb(220, 231, 245); border-radius: 50%; background: rgb(237, 244, 255); color: rgb(85, 123, 168); font-size: 10px; font-weight: 500;}
.sg-hc-contact-copy{min-width: 0px;}
.sg-hc-contact-name{font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap;}
.sg-hc-channel{display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 10px; line-height: 1.2; color: var(--muted);}
.sg-hc-ig-icon{width: 11px; height: 11px; flex: 0 0 11px; fill: none; stroke: currentcolor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;}
.sg-hc-offer{display: flex; align-items: center; min-width: 0px; padding: 0px 12px; height: 21px; border-bottom: 1px solid var(--line); font-size: 10px; line-height: 1.2; color: rgb(70, 91, 118); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.sg-hc-thread{display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; min-height: 0px; padding: 9px 11px 8px; overflow: hidden;}
.sg-hc-message{max-width: 91%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; background: rgb(248, 250, 252); color: rgb(52, 75, 102); font-size: 11.5px; line-height: 1.3; overflow-wrap: break-word;}
.sg-hc-message.sg-hc-agent{align-self: flex-end; border-color: rgb(216, 230, 245); background: rgb(237, 244, 252); color: rgb(35, 77, 122);}
.sg-hc-agent-turn{align-self: flex-end; display: flex; align-items: flex-end; gap: 6px; max-width: 96%; min-width: 0px;}
.sg-hc-agent-turn .sg-hc-message{max-width: none; min-width: 0px;}
.sg-hc-agent-avatar{display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border: 1px solid rgb(225, 233, 243); border-radius: 50%; background: rgb(255, 255, 255);}
.sg-hc-agent-avatar img{display: block; width: 13px; height: 16px; object-fit: contain;}
.sg-hc-followup{align-self: stretch; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; line-height: 1.2;}
.sg-hc-followup::before,.sg-hc-followup::after{content: ""; height: 1px; background: var(--line); flex: 1 1 0%;}





















@container (max-width: 200px){.sg-hc-app{border-radius: 5px;}
.sg-hc-app{grid-template-rows: 30px 17px minmax(0px, 1fr); aspect-ratio: 154 / 160;}
.sg-hc-contact{gap: 6px; padding: 0px 8px;}
.sg-hc-avatar{width: 21px; height: 21px; flex-basis: 21px; font-size: 9px;}
.sg-hc-contact-name{font-size: 11.5px;}
.sg-hc-channel{gap: 3px; margin-top: 1px; font-size: 10px;}
.sg-hc-ig-icon{width: 10px; height: 10px; flex-basis: 10px;}
.sg-hc-offer{height: 17px; padding: 0px 8px; font-size: 10px;}
.sg-hc-thread{gap: 3px; padding: 3px 8px;}
.sg-hc-message{max-width: 92%; padding: 3px 6px; border-radius: 7px; font-size: 10px; line-height: 1.2;}
.sg-hc-followup{gap: 4px; font-size: 10px;}
.sg-hc-agent-turn{gap: 4px; max-width: 100%;}
.sg-hc-agent-avatar{width: 18px; height: 18px; flex-basis: 18px;}
.sg-hc-agent-avatar img{width: 11px; height: 13px;}





}


.sg-hc-piece{position:absolute;inset:0;width:100%;height:100%;container-type:inline-size;--ink:#233650;--blue:#075db3;--muted:#687a91;--line:#e5ebf3;--frame:#fff;font-family:"Noto Sans","Segoe UI",sans-serif;font-size:12px;font-weight:400;line-height:normal;color:var(--ink);font-synthesis:none;text-align:left;}
.sg-hc-piece,.sg-hc-piece *{box-sizing:border-box;}
.sg-hc-app,.sg-hc-card{width:100%;height:100%;aspect-ratio:auto;}

/* Social content: show the finished post, with its design, caption and networks. */
.sg-he-piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  container-type: inline-size;
  --ink: #233650;
  --muted: #687a91;
  --line: #e5ebf3;
  --frame: #fff;
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: normal;
  color: var(--ink);
  font-synthesis: none;
  text-align: left;
}

.sg-he-piece, .sg-he-piece * { box-sizing: border-box; }
.sg-he-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

.sg-he-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-rows: max(28px, 8.4cqw) minmax(0, 1fr) max(24px, 7.8cqw);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--frame);
}

.sg-he-app-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding-inline: 3.5cqw;
  border-bottom: 1px solid var(--line);
}

.sg-he-logo { display: block; width: 13px; height: 16px; object-fit: contain; }
.sg-he-agent-label { margin: 0; font-size: clamp(11px, 3.5cqw, 15px); line-height: 1.2; font-weight: 600; }

.sg-he-icon {
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-he-post {
  display: grid;
  grid-template-columns: 29cqw minmax(0, 1fr);
  align-items: center;
  gap: 3.5cqw;
  min-height: 0;
  padding: 2.8cqw 3.5cqw;
}

.sg-he-artwork {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3cqw;
  border-radius: 3px;
  background: #115cae;
  color: #fff;
}

.sg-he-slide { position: absolute; top: 1.5cqw; right: 1.5cqw; font-size: 8px; line-height: 1; color: #eaf3fb; }
.sg-he-artwork-title { margin: 0; max-width: 9ch; font-size: clamp(12px, 4.3cqw, 18px); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
.sg-he-post-copy { min-width: 0; }
.sg-he-post-account { display: flex; align-items: center; gap: 5px; font-size: clamp(10px, 2.9cqw, 12px); font-weight: 600; line-height: 1.2; }
.sg-he-caption { margin: 6px 0 0; font-size: clamp(10px, 3.15cqw, 13px); line-height: 1.4; color: #465b76; }
.sg-he-post-actions { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: #465b76; }
.sg-he-bookmark { margin-left: auto; }

.sg-he-networks {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0 3.5cqw;
  list-style: none;
  border-top: 1px solid var(--line);
  color: #465b76;
}

.sg-he-networks li { display: flex; align-items: center; }
.sg-he-networks .sg-he-icon { width: 14px; height: 14px; }

@container (max-width: 300px) {
  .sg-he-card { grid-template-rows: 25px minmax(0, 1fr) 23px; }
  .sg-he-app-bar { gap: 6px; padding-inline: 9px; }
  .sg-he-logo { width: 11px; height: 14px; }
  .sg-he-agent-label { font-size: 11px; }
  .sg-he-post { grid-template-columns: 28cqw minmax(0, 1fr); gap: 8px; padding: 6px 9px; }
  .sg-he-artwork { padding: 7px; }
  .sg-he-artwork-title { font-size: 11px; }
  .sg-he-slide { top: 4px; right: 4px; font-size: 7px; }
  .sg-he-post-account { gap: 4px; font-size: 10px; }
  .sg-he-post-account .sg-he-icon { width: 11px; height: 11px; }
  .sg-he-caption { margin-top: 4px; font-size: 9.5px; line-height: 1.3; }
  .sg-he-post-actions { display: none; }
  .sg-he-networks { padding-inline: 9px; }
  .sg-he-networks .sg-he-icon { width: 13px; height: 13px; }
}

/* Reservation conversation, using the same visual language as the publication calendar. */
.cc-piece {
  --cc-ink: #233650; --cc-muted: #687a91; --cc-blue: #115cae;
  --cc-line: #e8e9e9; --cc-frame: #fdfcfa; --cc-success: #247354;
  width: 100%; height: 100%; container-type: inline-size;
  color: var(--cc-ink); font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-weight: 400; line-height: normal; font-synthesis: none; text-align: left;
}
.cc-piece, .cc-piece * { box-sizing: border-box; }
.cc-app {
  display: grid; grid-template-rows: 32px minmax(0, 1fr) 34px;
  width: 100%; height: 100%; overflow: hidden;
  border: 1px solid #d9dedc; border-radius: 12px; background: var(--cc-frame);
  box-shadow: 0 2px 3px rgb(0 0 0 / 3%), 0 7px 12px -4px rgb(0 0 0 / 7%);
}
.cc-header {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  padding-inline: 12px; border-bottom: 1px solid var(--cc-line);
}
.cc-channel { display: block; width: 16px; height: 16px; flex: none; object-fit: contain; }
.cc-icon {
  display: block; width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.cc-name { min-width: 0; margin: 0; font-size: 12px; line-height: 1.3; font-weight: 600; }
.cc-thread {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 9px; min-height: 0; padding: 12px;
}
.cc-message {
  max-width: 96%; margin: 0; padding: 8px 10px;
  border: 0; border-radius: 8px; background: #f0f2f5; color: #465b76;
  font-size: 13px; line-height: 1.35; overflow-wrap: break-word;
}
.cc-message.cc-agent { align-self: flex-end; background: #e7f5e8; color: var(--cc-success); }
.cc-hour { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc-result {
  display: flex; align-items: center; gap: 5px; min-width: 0;
  padding: 0 12px 8px; color: #52647c; font-size: 12px; line-height: 1.3;
}
.cc-result .cc-icon { width: 13px; height: 13px; color: var(--cc-success); stroke-width: 2; }
@container (min-width: 250px) {
  .cc-app { grid-template-rows: 34px minmax(0, 1fr) 36px; }
  .cc-name { font-size: 13px; }
  .cc-message { font-size: 14px; }
}
@media (max-width: 809.98px) {
  [data-local-viewport="mobile"] .cc-piece:not([data-selfgrow-hero-canvas] *) { height: auto; }
  [data-local-viewport="mobile"] .cc-app:not([data-selfgrow-hero-canvas] *) { height: auto; grid-template-rows: 32px auto 34px; }
}
@container (max-width: 180px) {
  .cc-header { gap: 5px; padding-inline: 8px; }
  .cc-name { font-size: 10.5px; }
  .cc-channel { width: 13px; height: 13px; }
  .cc-thread { gap: 7px; padding: 10px 8px; }
  .cc-message { padding: 7px 8px; font-size: 11px; line-height: 1.3; }
  .cc-result { gap: 4px; padding-inline: 8px; font-size: 10.5px; }
  .cc-result .cc-icon { width: 11px; height: 11px; }
}
