/* Website page (client overview): a prospect's First look and a monitored
   website's latest report. Builds on observatory.css; product sheets that load
   later (client-overview, client-progress, site-review) are re-scoped here to
   the design's values, and the phone layout is added. Theme tokens only. */

.so-website .client-overview-meta .so-ext { border-bottom: 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.so-website .client-overview-meta .so-ext:hover { color: var(--text); }
.so-website .client-overview-actions form { display: contents; }
.so-website .so-lede { margin-top: -6px; }

/* Tiles: one row of up to four. */
.so-website .progress-tiles.so-tiles-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 20px; }
.so-website .so-tiles-row.so-tiles-3, .so-website .so-tiles-row.so-tiles-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.so-website .so-tiles-row.so-tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.so-website .progress-tile-change { color: var(--text-3); }
.so-tiles-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.so-website .so-tiles-head .so-eyebrow { margin: 0; }
.so-website .so-partial { margin: -8px 0 16px; }
.so-website .so-tiles-head .ws-pill { margin-left: 6px; text-transform: none; letter-spacing: 0; vertical-align: 1px; }
/* The report's own heading, with the way into it, below the speed trend. */
.so-website .so-report-head { margin-top: 32px; align-items: center; }
.so-website .client-progress > .so-report-head:first-child { margin-top: 0; }
.so-website .so-talk-none p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--text-2); }

/* Panels: the design's flatter card, not site-review.css's report panel. */
.so-website .review-panel.so-panel { margin: 20px 0 0; padding: 24px 28px; border-radius: 8px; }
.so-website .review-panel.so-fix-wide { padding: 24px 28px 16px; }
.so-website .review-panel h2 { font-size: 21px; letter-spacing: -.4px; }
.so-website .so-wait p:not(.eyebrow) { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.so-website .so-wait > .so-link, .so-website .so-wait > .button, .so-website .so-wait > .so-actions { margin-top: 16px; }
.so-website .so-wait > .so-link { display: inline-block; }
.so-website .so-wait .so-actions form { display: contents; }

/* Three things worth a conversation. */
.so-website .so-talk { margin-top: 0; }
.so-website .so-talk h2 { font-size: 21px; letter-spacing: -.4px; }
.so-website .so-more-link { display: inline-block; margin-top: 16px; }

/* New report strip without a page thumbnail. */
.so-website .so-ready.is-plain { grid-template-columns: minmax(0, 1fr) auto; padding: 20px 24px; }
.so-website .so-ready h2 .ws-pill { margin-left: 6px; font-size: 12px; letter-spacing: 0; vertical-align: 3px; }

/* What to fix next: the problem and its page(s), no status column. */
.so-website .so-fix-plain .so-fix-row { grid-template-columns: minmax(0, 1fr) minmax(110px, 220px); }
.so-website .so-fix-plain .so-fix-row > span:last-child { justify-self: end; text-align: right; }
.so-website .so-fix-plain .so-fix-row:has(> .so-keep, > form) { grid-template-columns: minmax(0, 1fr) minmax(110px, 220px) auto; }
.so-website .so-fix-plain .so-fix-row > span:not(:last-child) { justify-self: end; text-align: right; }

/* Notices above the tiles (a running First look or report, a failed attempt). */
.so-website .client-notice { flex-wrap: wrap; gap: 10px 22px; font-size: 13px; }
.so-website .client-notice form { display: contents; }
.so-website .client-notice .button { min-height: 36px; padding: 7px 12px; }
.so-notice-text { color: var(--text); font-weight: 500; }
/* Stop a running report (observatory.css .so-stop): beside its link until it asks, then on its own row. */
.so-website .client-notice .so-stop:not([open]) { margin-left: auto; }

@media (max-width: 800px) {
  .so-website .progress-tiles.so-tiles-row, .so-website .so-tiles-row.so-tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .so-website .so-tiles-row.so-tiles-1 { grid-template-columns: minmax(0, 1fr); }
  .so-website .so-tiles-row.so-tiles-3 > :last-child { grid-column: 1 / -1; }  /* no lone half-width tile */
}
@media (max-width: 640px) {
  /* Settings stays in the header row as an icon; the other actions take the row below. */
  .so-website .client-overview-head { position: relative; }
  .so-website .client-overview-head .so-title { padding-right: 54px; }
  .so-website .client-overview-actions .button.so-settings { position: absolute; top: 0; right: 0; flex: none; width: 42px; min-height: 42px; padding: 0; }
  .so-website .so-settings .icon { width: 18px; height: 18px; }
  .so-website .so-settings-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .so-website .client-overview-actions:has(> .so-settings:only-child) { display: contents; }
  .so-website .so-report-head .button { flex: 1 1 100%; justify-content: center; }
  .so-website .client-notice .so-stop:not([open]) { margin-left: 0; }
  .so-website .so-title { gap: 12px; }
  .so-website .so-avatar.is-big { width: 40px; height: 40px; border-radius: 10px; font-size: 16px; }
  .so-website .so-avatar.is-big.is-pair { font-size: 14px; }
  .so-website .client-overview-actions .button { flex: 1 1 auto; justify-content: center; }
  .so-website .review-panel.so-panel, .so-website .review-panel.so-fix-wide { padding: 18px 16px; }
  .so-website .so-ready.is-plain { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 16px; }
  .so-website .so-ready-actions { justify-content: stretch; }
  .so-website .so-ready-actions .button { flex: 1; justify-content: center; }
  .so-website .so-fix-plain .so-fix-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .so-website .so-fix-plain .so-fix-row:has(> .so-keep, > form) { grid-template-columns: minmax(0, 1fr); }
  .so-website .so-fix-plain .so-fix-row > :is(.so-keep, form) { justify-self: start; }
  .so-website .so-fix-plain .so-fix-row > span, .so-website .so-fix-plain .so-fix-row > span:not(:last-child) { justify-self: start; text-align: left; font-size: 12.5px; color: var(--text-3); }
  .so-website .so-talk-list li { grid-template-columns: 30px minmax(0, 1fr); }
  .so-website .progress-tile-value b { font-size: 22px; }
}

/* A first look running on the website page itself: the live progress scene, then the result in place. */
.so-live-look{display:block;margin-top:8px}
.so-live-look .so-live-note{margin:14px 0 0;text-align:center}
.so-live-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:6px 18px;margin-top:6px}
.so-live-actions .so-link,.so-live-actions .so-stop:not([open]){font-size:12px}
.so-while-waiting{margin:28px 0 10px}

/* Weekly trend on the website page: event markers over the shared progress chart. */
.so-trend-card { margin-top: 16px; }
.so-trend-now { display: grid; gap: 6px; }
.so-trend-now .progress-tile-value { margin: 0; }
.so-trend-now .progress-tile-value b { color: var(--ink); }
/* A gap the data keeps (a hollow point): dashed, so the line reads on but is not compared. */
.so-trend-card .progress-line.is-gap { stroke: var(--text-3); stroke-width: calc(1.5px * var(--u)); stroke-dasharray: calc(4px * var(--u)) calc(5px * var(--u)); stroke-linecap: butt; }
.so-trend-card .so-event { stroke: var(--border-strong); stroke-width: calc(1px * var(--u)); stroke-dasharray: 4 4; }
.so-trend-card .so-event-label { fill: var(--text-2); }
.so-trend-card .progress-point { cursor: default; }
.so-trend-card a.progress-point { cursor: pointer; }
.so-trend-card .progress-tooltip .progress-tooltip-open { margin-top: 6px; color: var(--ink); font-weight: 500; }
