/* Shared by every page: brand colours, type, header, footer, buttons. The colours come from the app icon: the header
   and the footer stand on its plum; the pages between them are light, except the home page, which is plum throughout. */

:root {
  --site-bg: #F9F7F6;
  --site-surface: #FFFFFF;
  --site-ink: #22161F;
  --site-muted: #67596A;
  --site-line: #EAE2E7;
  --site-brand: #4A2D45;
  --site-accent: #C3B1CF;
  --site-soft: #F4EEF3;
  /* on the plum ground: quiet text, hairlines, the ink of light buttons, and the colour of the main button and the focus ring */
  --site-quiet: #E6D8E1;
  --site-hairline: rgba(255, 255, 255, 0.16);
  --site-night: #2A1A28;
  --site-glow: #F0CDB4;
  --ok: #0F766E;
  --ok-soft: #E6F4F1;
  --warn: #9A5B06;
  --warn-soft: #FDF3DC;
  --stop: #A8323B;
  --stop-soft: #FBE9EA;

  /* colours of the mobile app itself, used only inside the phone replica */
  --app-amber: #D97706;
  --app-deep: #2A1A28;
  --app-chip: #F3EDF2;
  --app-red: #EF4444;
  --app-red-line: #FECACA;
  --app-ink1: #1E293B;
  --app-ink2: #334155;
  --app-ink3: #475569;
  --app-mute2: #94A3B8;
  --app-grey: #CBD5E1;
  --app-line2: #F1F5F9;
  --app-line3: #EEF2F7;

  --f-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* The page column: 70rem up to a 1440 px screen, then about 78% of the screen, and 100rem at most. The header and
     the footer share it; the home page sets a wider one (home.css). */
  --wrap: clamp(70rem, 77.77vw, 100rem);
  --gutter: 1.375rem;
  --radius: 1.125rem;
}

/* Chinese, Japanese and Korean: the Latin fonts have none of these glyphs, so the system fonts of the language come
   first. No font file is loaded for any of them. */

:lang(ja) {
  --f-ui: "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
  /* Breaks lines between phrases, not inside a word such as ください. */
  word-break: auto-phrase;
}

:lang(ko) {
  --f-ui: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  /* Korean words stay whole: lines break only at the spaces between them. */
  word-break: keep-all;
}

:lang(zh) {
  --f-ui: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  word-break: auto-phrase;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Sizes on the site are in rem, so above 1440 px the whole design grows with the screen: one more pixel of type
     for every 280 px, which is 125% at 2560 px, and 131.25% at most. Up to 1440 px it is the size the visitor has
     set in the browser, and the growth is counted from that size. */
  font-size: clamp(100%, calc(100% + (100vw - 1440px) / 280), 131.25%);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--hdr-height, 4.25rem);
}

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: var(--f-ui);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--site-brand);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* The focus ring is the brand colour on light backgrounds and the warm glow of the icon on the plum ones: both stand out.
   The list of languages is a white panel inside the plum header. */

:focus-visible {
  outline: 3px solid var(--site-brand);
  outline-offset: 2px;
}

.skip:focus-visible,
.hdr :focus-visible,
.ftr :focus-visible {
  outline-color: var(--site-glow);
  outline-offset: 3px;
}

.lang-list :focus-visible {
  outline-color: var(--site-brand);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.75rem;
  z-index: 100;
  /* it appears over the plum header */
  background: var(--site-surface);
  color: var(--site-brand);
  padding: 0.625rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  border-radius: 999px;
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--site-brand);
  background: var(--site-brand);
  color: var(--site-surface);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn:hover {
  box-shadow: 0 0.25rem 0.875rem rgba(74, 45, 69, 0.22);
}

.btn.ghost {
  background: transparent;
  color: var(--site-brand);
}

.btn.ghost:hover {
  background: var(--site-soft);
  box-shadow: none;
}

.btn.big {
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Header: the logo, the language switcher and the account buttons, on plum on every page. */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--site-brand);
  border-bottom: 1px solid var(--site-hairline);
}

.hdr-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem 1.25rem;
}

/* The header can be wider than the screen: with a large browser font, or with longer button texts in some languages,
   its right-hand group moves to a second line instead of making the page scroll sideways. It stays on one line
   wherever it fits. */
.hdr-in {
  flex-wrap: wrap;
}

/* The logo stands only in the header and the footer, both plum. */

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--site-surface);
  text-decoration: none;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hdr .btn {
  background: var(--site-surface);
  border-color: var(--site-surface);
  color: var(--site-night);
}

.hdr .btn:hover {
  background: var(--site-soft);
  box-shadow: none;
}

.hdr .btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--site-surface);
}

.hdr .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Language switcher: the summary is quiet text on the header, and the list is a small white panel under it. The panel
   is anchored at the left edge of the switcher, which is never far enough right to leave the screen. */

.lang {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--site-quiet);
  padding: 0.5rem 0.625rem;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
}

.lang-toggle::-webkit-details-marker {
  display: none;
}

.lang-toggle:hover,
.lang[open] > .lang-toggle {
  color: var(--site-surface);
  background: rgba(255, 255, 255, 0.12);
}

.lang-list {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  z-index: 70;
  width: min(11rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.375rem;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  border-radius: 0.875rem;
  box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.12);
}

.lang-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.5rem;
  border-radius: 0.625rem;
  font-size: 0.9rem;
  color: var(--site-ink);
  text-decoration: none;
}

.lang-list a:hover {
  background: var(--site-soft);
  color: var(--site-brand);
}

.lang-list a[aria-current="true"] {
  font-weight: 700;
  color: var(--site-brand);
}

/* Flags: 3 to 2, with a thin border and rounded corners; the height of the text beside them. */

.flag {
  flex: none;
  width: 1.25em;
  height: 0.8333em;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 0.1875em;
  overflow: hidden;
  vertical-align: -0.05em;
}

/* The symbols of the flags are in the page for the <use> references and take no room. */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@media (max-width: 480px) {
  :root {
    --gutter: 1rem;
  }

  .hdr-in {
    gap: 0.5rem;
  }

  .hdr-right {
    gap: 0.25rem;
  }

  .hdr .btn {
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
  }
}

/* The narrowest phones (320 px): the Russian header fits only with tighter buttons. */

@media (max-width: 350px) {
  .hdr .btn {
    padding: 0.5rem 0.5625rem;
  }

  .lang-toggle {
    padding: 0.5rem 0.375rem;
  }
}

/* Footer, on plum like the header. The text pages leave air above it. */

.ftr {
  margin-top: 4.5rem;
  background: var(--site-brand);
  border-top: 1px solid var(--site-hairline);
  color: var(--site-surface);
}

.ftr-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.75rem var(--gutter) 1.75rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.75rem;
}

.ftr-brand p {
  margin-top: 0.625rem;
  font-size: 0.92rem;
  max-width: 26rem;
}

.ftr-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.ftr-col h2 {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--site-quiet);
  margin-bottom: 0.25rem;
}

.ftr a {
  color: var(--site-surface);
  text-decoration: none;
}

.ftr a:hover {
  text-decoration: underline;
}

.ftr-small,
.ftr-note {
  font-size: 0.8rem;
  color: var(--site-quiet);
}

.ftr-note {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1rem var(--gutter) 1.75rem;
  border-top: 1px solid var(--site-hairline);
}

@media (max-width: 820px) {
  .ftr-in {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .ftr-in {
    grid-template-columns: 1fr;
  }
}

/* The question about the visit counter, and the footer link that opens it again */

.consent {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1rem;
  z-index: 400;
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--site-surface);
  color: var(--site-ink);
  border: 1px solid var(--site-line);
  border-radius: var(--radius);
  box-shadow: 0 0.5rem 2rem rgba(15, 23, 42, 0.18);
  font-size: 0.92rem;
}

.consent[hidden] {
  display: none;
}

.consent p {
  flex: 1 1 18rem;
}

.consent a {
  color: var(--site-brand);
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  gap: 0.625rem;
}

@media (max-width: 480px) {
  .consent-actions {
    width: 100%;
  }

  .consent-actions .btn {
    flex: 1;
  }
}

.ftr-link {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--site-surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ftr-link:hover {
  text-decoration: underline;
}

.ftr-link[hidden] {
  display: none;
}

/* Simple page used by 404 and short notices */

.plain-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4.5rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.plain-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.plain-page p {
  color: var(--site-muted);
}

.plain-lang {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--site-line);
}

/* A wide screen is often taller than a short page (the account, the 404 page): the footer then stands at the
   bottom edge of the screen and leaves no band of the page colour under it. */

@media (min-width: 1441px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  main {
    flex: 1 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* Home page: one plum screen between the header and the footer. The headline and the buttons stand on the left,
   the phone scene on the right (scene.css); on a narrow screen they follow each other. */

/* The column of this page, shared by the header, the first screen and the footer, is wider than the column of the
   text pages. It is set in rem, so above 1440 px it grows with the root size like everything else on the site. */

:root {
  --wrap: 84rem;
}

/* The page is one plum piece: the first screen fills the window between the header and the footer at any size,
   and the footer follows it without a gap. */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--site-brand);
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.ftr {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* In a window taller than the page the text and the phone stay in the middle of the plum. */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  color: var(--site-surface);
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 3.5rem;
  align-items: center;
  padding-top: 2.25rem;
  padding-bottom: 2.75rem;
}

.hero :focus-visible {
  outline-color: var(--site-glow);
  outline-offset: 3px;
}

/* The display cut of the Windows system font, where it exists, is drawn for headline sizes; other systems take the
   font of the site. */

.hero-pitch {
  font-family: "Segoe UI Variable Display", var(--f-ui);
}

.hero-title {
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 1.5rem;
  max-width: 27em;
  font-size: 1.25rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

/* The main button is the warm glow of the icon; the second one, next to it, is a line. A long label breaks instead of leaving the screen. */

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.625rem 1.75rem;
  border: 2px solid var(--site-glow);
  border-radius: 0.625rem;
  background: var(--site-glow);
  color: var(--site-night);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.hero-btn:hover {
  border-color: #FFD877;
  background: #FFD877;
}

.hero-btn.line {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--site-surface);
}

.hero-btn.line:hover {
  border-color: var(--site-surface);
  background: rgba(255, 255, 255, 0.08);
}

.hero-platform {
  margin-top: 0.875rem;
  color: var(--site-quiet);
}

/* Narrow screens: the text, then the scene with its controls above the phone. */

@media (max-width: 992px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2rem;
    padding-top: 1.75rem;
  }
}

@media (max-width: 640px) {
  .hero-in {
    row-gap: 1.5rem;
    padding-top: 1.25rem;
    padding-bottom: 2.25rem;
  }

  .hero-lead {
    margin-top: 0.875rem;
    font-size: 1.0625rem;
  }

  .hero-actions {
    gap: 0.5rem;
    margin-top: 1.25rem;
  }

  .hero-btn {
    flex: 1 1 100%;
    min-height: 3.25rem;
  }
}

/* The phone scene of the first screen: the controls around the phone, then the replica of the mobile app.
   The scene stands on the plum ground of the home page, so its controls are light. */

.scene {
  /* the replica is built at the app's width of 360 and scaled down as a whole, so its proportions match the app */
  --phone-scale: 0.88;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
}

/* The controls work only with scripts: until the scene is live they keep their place and stay unseen. */

.scene-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scene:not(.live) .scene-controls,
.scene:not(.live) .scene-requests {
  visibility: hidden;
}

@media (scripting: none) {
  .scene-controls,
  .scene-requests {
    display: none;
  }
}

.scene-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.scene-chip {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--site-surface);
  border-radius: 999px;
  padding: 0.4375rem 0.875rem;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.scene-chip:hover {
  border-color: var(--site-surface);
}

.scene-chip[aria-pressed="true"] {
  background: var(--site-surface);
  color: var(--site-night);
  border-color: var(--site-surface);
}

.scene-rail {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.scene-play {
  flex: none;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  border: 1px solid var(--site-surface);
  background: var(--site-surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.scene-play svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: var(--site-night);
}

/* The steps of all scenarios lie on top of each other; the tallest row sets the height, so nothing jumps on a switch. */

.scene-steps-stack {
  display: grid;
  min-width: 0;
  align-items: start;
}

.scene-steps {
  grid-area: 1 / 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-width: 0;
  padding-top: 0.25rem;
  visibility: hidden;
}

.scene-steps.current {
  visibility: inherit;
}

.scene-steps button {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--site-quiet);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.1875rem 0.625rem 0.1875rem 0.1875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
}

.scene-steps button b {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--site-surface);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
}

.scene-steps button:hover {
  color: var(--site-surface);
  border-color: rgba(255, 255, 255, 0.6);
}

.scene-steps button[aria-current="step"] {
  color: var(--site-surface);
  border-color: var(--site-surface);
}

.scene-steps button[aria-current="step"] b {
  background: var(--site-glow);
  color: var(--site-night);
}

/* On touch screens the chips get more room for a finger. */

@media (pointer: coarse) {
  .scene-chip {
    padding: 0.5625rem 0.875rem;
  }

  .scene-steps button {
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  }
}

.scene-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.scene-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--site-glow);
  transform-origin: left center;
  transform: scaleX(0.6);
}

/* Captions are stacked the same way as the steps. */

.scene-caption {
  display: grid;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 500;
}

.scene-caption span {
  grid-area: 1 / 1;
  visibility: hidden;
}

.scene-caption span.current {
  visibility: inherit;
}

.scene-requests {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
}

.scene-notes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scene-note {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--site-quiet);
}

/* The line about the colour marks; its dots carry the classes of the marks (see "Colour marks" below). */

.scene-legend {
  font-size: 0.875rem;
  line-height: 1.45;
}

.scene-dots {
  display: inline-flex;
  gap: 0.25rem;
  margin-right: 0.5rem;
}

.scene-dots i {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--k);
}

/* A scenario without a request in words has no request to choose and nothing coloured; the lines keep their place. */

.scene-requests.idle,
.scene-legend.idle {
  visibility: hidden;
}

/* Wide screens: the controls stand beside the phone. The two flexible rows keep them centred against it. */

@media (min-width: 993px) {
  .scene {
    display: grid;
    grid-template-columns: clamp(14.5rem, 21vw, 19rem) auto;
    grid-template-rows: 1fr auto auto auto auto 1fr;
    column-gap: 2.25rem;
    row-gap: 1rem;
  }

  .scene-controls {
    grid-area: 2 / 1;
  }

  .scene-caption {
    grid-area: 3 / 1;
  }

  .scene-requests {
    grid-area: 4 / 1;
  }

  .scene-notes {
    grid-area: 5 / 1;
    gap: 1rem;
  }

  .phone-wrap {
    grid-area: 1 / 2 / -1 / 2;
  }
}

/* ---------- The phone: a replica of the mobile app, with the sizes and colours of its components ----------
   Every class of the replica starts with "ph-", so the styles of the page cannot reach into it.
   Short words next to such a class (on, tap, busy, alt, soft and the like) are its states and variants. */

@media (max-width: 440px) {
  .scene {
    --phone-scale: 0.74;
  }
}

/* A large screen shows a larger phone. Each step also asks for a height at which the first screen still holds
   the header and the whole phone; on a wide but short screen the phone keeps its size. */

@media (min-width: 1800px) and (min-height: 1160px) {
  .scene {
    --phone-scale: 1;
  }
}

@media (min-width: 2400px) and (min-height: 1280px) {
  .scene {
    --phone-scale: 1.15;
  }
}

@media (min-width: 2800px) and (min-height: 1400px) {
  .scene {
    --phone-scale: 1.3;
  }
}

.phone-wrap {
  position: relative;
  flex: none;
  align-self: center;
  width: calc(360px * var(--phone-scale));
  height: calc(740px * var(--phone-scale));
  margin: 0.625rem;
}

.phone {
  /* The app took the icon's plum but kept its slate greys (and the precision slider's dark thumb): the replica keeps
     the site's old neutrals, which are the app's own. */
  --site-bg: #F8FAFC;
  --site-ink: #0F172A;
  --site-muted: #566079;
  --site-line: #E2E8F0;
  /* colours of the app that only the replica uses */
  --app-violet: #8A5A7E;
  --app-lilac: #EFE6ED;
  --app-lilac2: #FAF6F9;
  --app-teal: #247BA0;
  --app-teal-soft: #ECF8FC;
  --app-green-bg: #ECFDF5;
  --app-green1: #064E3B;
  --app-green2: #065F46;
  --app-patch-bg: #F0FDF4;
  --app-patch-line: #BBF7D0;
  --app-patch-title: #166534;
  --app-patch-ok: #15803D;
  --app-hint-line: #DCCCD8;
  --app-fb: #65676B;
  --app-hair: #CED0D4;
  --app-hair2: #E4E6EB;
  --temp-low: #EAB308;
  --temp-mid: #22C55E;
  --temp-high: #3B82F6;
  position: absolute;
  left: 0;
  top: 0;
  width: 360px;
  height: 740px;
  transform-origin: 0 0;
  transform: scale(var(--phone-scale));
  background: var(--site-bg);
  border-radius: 40px;
  overflow: hidden;
  /* the frame needs a light edge on the dark ground */
  box-shadow: 0 0 0 9px var(--site-night), 0 0 0 10px rgba(255, 255, 255, 0.28), 0 24px 56px rgba(0, 0, 0, 0.35);
  font-family: Roboto, var(--f-ui);
  color: var(--site-ink);
  line-height: 1.3;
  text-align: left;
  font-size: 14px;
}

.phone * {
  box-sizing: border-box;
}

.phone .ph-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
  flex: none;
}

.phone .ph-icon-14 {
  width: 14px;
  height: 14px;
}

.phone .ph-icon-15 {
  width: 15px;
  height: 15px;
}

.phone .ph-icon-18 {
  width: 18px;
  height: 18px;
}

.phone .ph-icon-20 {
  width: 20px;
  height: 20px;
}

.phone .ph-icon-22 {
  width: 22px;
  height: 22px;
}

.phone .ph-status-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 600;
  z-index: 300;
  color: var(--site-ink);
}

.phone .ph-battery {
  width: 22px;
  height: 11px;
  border: 1.5px solid var(--site-ink);
  border-radius: 3px;
  padding: 1px;
  display: block;
}

.phone .ph-battery i {
  display: block;
  width: 70%;
  height: 100%;
  background: var(--site-ink);
  border-radius: 1px;
}

.phone .ph-screen {
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  bottom: 0;
  background: var(--site-bg);
}

/* Search tab: header */

.phone .ph-tab-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  padding: 8px 0 7px;
  /* solid behind the title and the filter chips, so the list scrolled under them does not show through */
  background: linear-gradient(var(--site-bg) 0, var(--site-bg) calc(100% - 8px), rgba(248, 250, 252, 0) 100%);
}

/* The phone is scaled, so the top edge of the header falls between pixels and a hairline of the list shows there; this strip covers it. */

.phone .ph-tab-head::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--site-bg);
}

.phone .ph-tab-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 17.5px;
  margin-bottom: 3.5px;
}

.phone .ph-tab-title {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  white-space: nowrap;
}

.phone .ph-tab-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.phone .ph-mode-switch {
  width: 84px;
  height: 30px;
  border-radius: 15px;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  display: flex;
}

.phone .ph-mode-switch span {
  flex: 1;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--site-muted);
}

.phone .ph-mode-switch span.on {
  background: var(--site-brand);
  color: var(--site-surface);
}

.phone .ph-icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.phone .ph-save-status {
  padding: 0 17.5px;
  margin-bottom: 3.5px;
  font-size: 10px;
  line-height: 13px;
  font-weight: 600;
  color: var(--app-amber);
  text-decoration: underline;
}

.phone .ph-filter-row {
  overflow: hidden;
}

.phone .ph-filter-chips {
  display: flex;
  gap: 8px;
  padding: 0 20px 8px;
  width: max-content;
  transition: transform 0.5s ease;
}

.phone .ph-filter-chip {
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--site-muted);
  white-space: nowrap;
  flex: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.phone .ph-filter-chip .ph-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.phone .ph-filter-chip.on {
  background: var(--site-accent);
  border-color: var(--site-accent);
  color: var(--app-deep);
}

.phone .ph-filter-chip.ph-temp {
  background: var(--app-chip);
  border-color: var(--site-accent);
  color: var(--site-brand);
}

.phone .ph-filter-chip.ph-reset {
  border-color: var(--app-red-line);
  color: var(--app-red);
}

.phone .ph-filter-chip.ph-reset .ph-icon {
  margin-right: 4px;
}

.phone .ph-temp-panel {
  padding: 0 20px 6px;
  background: var(--site-bg);
}

.phone .ph-temp-card {
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  border-radius: 16px;
  padding: 8px 12px 9px;
}

.phone .ph-temp-title {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--site-ink);
}

.phone .ph-temp-title span:first-child {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone .ph-temp-title .ph-value {
  margin-left: 8px;
}

.phone .ph-temp-scale,
.phone .ph-temp-edges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--site-muted);
}

.phone .ph-temp-scale .ph-value {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--site-ink);
  margin: 0 8px;
}

.phone .ph-temp-edges span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.phone .ph-temp-edges span + span {
  margin-left: 8px;
  text-align: right;
}

.phone .ph-temp-track {
  position: relative;
  height: 34px;
  margin: 2px 0;
}

.phone .ph-temp-track i {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 13px;
  height: 8px;
  border-radius: 4px;
  /* Green stands in the middle of the 0.7–0.8 balance band, as in the app. */
  background: linear-gradient(90deg, var(--temp-low) 0, var(--temp-mid) 75%, var(--temp-high) 100%);
}

.phone .ph-temp-track b {
  position: absolute;
  top: 7px;
  left: calc(14px + (100% - 28px) * 0.7 - 10px);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--site-ink);
}

.phone .ph-temp-legend {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}

.phone .ph-temp-legend div {
  display: flex;
  align-items: flex-start;
  font-size: 11.5px;
  line-height: 15px;
  color: var(--app-ink3);
  min-width: 0;
}

.phone .ph-temp-legend i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 4px 8px 0 0;
}

.phone .ph-temp-legend span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.phone .ph-temp-legend .ph-low {
  background: var(--temp-low);
}

.phone .ph-temp-legend .ph-mid {
  background: var(--temp-mid);
}

.phone .ph-temp-legend .ph-high {
  background: var(--temp-high);
}

/* Search tab: message list */

.phone .ph-feed {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

/* The top padding is the height of the header above the list; the scripts set the measured value. */

.phone .ph-feed-in {
  position: relative;
  padding: 135px 20px 260px;
}

.phone .ph-empty-state p {
  font-size: 15px;
  line-height: 22px;
  color: var(--site-muted);
  margin: 0;
  padding-top: 4px;
}

.phone .ph-hint-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--site-brand);
}

.phone .ph-msg-user {
  position: relative;
  margin: 0 0 21px auto;
  width: fit-content;
  max-width: 85%;
  background: var(--site-brand);
  color: var(--site-surface);
  padding: 14px 38.5px 14px 17.5px;
  border-radius: 21px 1.75px 21px 21px;
  font-size: 15px;
  line-height: 24.4px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.phone .ph-msg-user .ph-copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
}

.phone .ph-msg-thinking {
  display: flex;
  align-items: center;
  width: fit-content;
  background: var(--site-line);
  padding: 10.5px 17.5px;
  border-radius: 1.75px 21px 21px 21px;
  font-size: 15px;
  font-weight: 500;
  color: var(--app-ink2);
  margin-bottom: 21px;
}

.phone .ph-spinner {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(74, 45, 69, 0.22);
  border-top-color: var(--site-brand);
  margin-right: 7px;
  animation: phspin 0.8s linear infinite;
}

@keyframes phspin {
  to {
    transform: rotate(360deg);
  }
}

.phone .ph-msg-ai {
  width: fit-content;
  max-width: 92%;
  background: var(--site-line);
  padding: 10.5px 17.5px;
  border-radius: 1.75px 21px 21px 21px;
  font-size: 15px;
  line-height: 24.4px;
  color: var(--app-ink2);
  margin-bottom: 10.5px;
}

.phone .ph-cursor {
  color: var(--site-brand);
  animation: phblink 0.96s ease-in-out infinite;
}

@keyframes phblink {
  50% {
    opacity: 0.15;
  }
}

.phone .ph-match-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone .ph-match-card {
  background: var(--site-surface);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--app-line2);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

/* The texts above the photos, as on the app's card (MatchCollage): the name line, then the blocks of the AI.
   Sizes are the app's, times 0.875, as everywhere in the replica. */

.phone .ph-card-why {
  padding: 17.5px 17.5px 14px;
  display: flex;
  flex-direction: column;
  gap: 12.25px;
}

.phone .ph-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.325px;
  margin-bottom: 3.5px;
}

.phone .ph-card-summary,
.phone .ph-card-hook,
.phone .ph-card-fits li {
  margin: 0;
  font-size: 12.25px;
  line-height: 17.5px;
  color: var(--app-ink3);
}

.phone .ph-card-summary {
  margin-bottom: 7px;
}

.phone .ph-card-fits-title {
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 600;
  color: #047857;
  margin-bottom: 3.5px;
}

.phone .ph-card-fits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.6px;
}

.phone .ph-card-fits li {
  position: relative;
  padding-left: 9.6px;
}

.phone .ph-card-fits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4.4px;
  height: 4.4px;
  border-radius: 50%;
  background: var(--app-mute2);
}

.phone .ph-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 5.25px;
  margin-top: 3.5px;
}

.phone .ph-card-topics span {
  border-radius: 999px;
  padding: 3.5px 10.5px;
  background: var(--site-soft);
  color: var(--site-brand);
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 500;
}

.phone .ph-card-openers {
  display: flex;
  flex-direction: column;
  gap: 5.25px;
  margin-top: 8.75px;
}

.phone .ph-card-openers small {
  font-size: 10.5px;
  line-height: 14px;
  color: var(--site-muted);
}

.phone .ph-card-opener {
  display: flex;
  align-items: center;
  gap: 7px;
}

.phone .ph-card-opener p {
  flex: 1;
  margin: 0;
  background: var(--app-line2);
  padding: 7px 10.5px;
  border-radius: 12.25px 12.25px 12.25px 3.5px;
  font-size: 12.25px;
  line-height: 17.5px;
  color: var(--app-ink1);
}

/* The small "write with this text" button: the send icon in a light circle, so the main button stays the main one. */

.phone .ph-card-opener i {
  flex: none;
  width: 29.75px;
  height: 29.75px;
  border-radius: 50%;
  background: var(--site-soft);
  color: var(--site-brand);
  display: grid;
  place-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* A card has room for three quotes, four topics and two examples; a request or a person may have fewer. A card of
   AI Picks has no line about a request. */

.phone .ph-card-summary:empty,
.phone .ph-card-fits li:empty,
.phone .ph-card-topics span:empty,
.phone .ph-card-opener:has(p:empty) {
  display: none;
}

.phone .ph-card-photos {
  display: flex;
  gap: 4px;
  padding: 4px;
  height: 240px;
}

.phone .ph-card-photo-main {
  position: relative;
  width: 66%;
  height: 232px;
  border-radius: 20px;
  background: var(--site-line);
  overflow: hidden;
}

.phone .ph-card-photos-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.phone .ph-card-photo-small {
  position: relative;
  height: 114px;
  border-radius: 20px;
  background: var(--site-line);
  overflow: hidden;
}

.phone .ph-photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.phone .ph-card-info {
  padding: 17.5px;
}

.phone .ph-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.phone .ph-card-identity {
  flex: 1;
  padding-right: 7px;
  min-width: 0;
}

.phone .ph-card-name {
  font-size: 17.5px;
  line-height: 24.5px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.phone .ph-card-top-mark {
  margin-left: 7px;
  background: var(--site-accent);
  border-radius: 999px;
  padding: 1.75px 7px;
  font-size: 9px;
  line-height: 13px;
  font-weight: 700;
  color: var(--app-deep);
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.phone .ph-card-send {
  flex: none;
  width: 38.5px;
  height: 38.5px;
  border-radius: 50%;
  background: var(--site-brand);
  color: var(--site-surface);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 6px rgba(74, 45, 69, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.phone .ph-card-send.tap,
.phone .ph-card-opener i.tap,
.phone .ph-spark.tap {
  transform: scale(0.86);
  box-shadow: 0 0 0 9px rgba(195, 177, 207, 0.5);
}

/* The fields of the person's profile under the name, without captions, as on the app's card: the industry, the job,
   the goal with its icon, and the text the person wrote about themselves. An empty field takes no room. */

.phone .ph-card-details {
  margin-top: 10.5px;
  border-top: 1px solid var(--app-line2);
  padding-top: 10.5px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.25px;
  line-height: 17.5px;
  font-weight: 500;
  color: var(--app-ink1);
}

.phone .ph-card-goal {
  display: flex;
  align-items: center;
}

.phone .ph-card-goal .ph-icon {
  color: var(--site-muted);
  margin-right: 5.25px;
}

.phone .ph-card-about {
  margin: 0;
  font-weight: 400;
  color: var(--app-ink3);
}

.phone .ph-card-details > :empty,
.phone .ph-card-goal:has(span:empty) {
  display: none;
}

/* Colour marks, as in the app: a condition of the request has one colour in the request-checked line, in the quotes
   that answer it, in the same words under the photos and in the request itself. The first three colours of the app's
   palette; the dots of the line near the phone show them too. */

.scene .ph-k1 {
  --k: #FFC94A;
  --k-soft: #FFE49A;
}

.scene .ph-k2 {
  --k: #FFA9B8;
  --k-soft: #FFD0D8;
}

.scene .ph-k3 {
  --k: #86E3C3;
  --k-soft: #B4EEDA;
}

/* On the white card: a soft highlight under dark text. A mark does not change the size or the breaks of the text. */

.phone mark {
  background: var(--k-soft);
  color: var(--site-night);
  border-radius: 3px;
  box-shadow: 0 0 0 1.5px var(--k-soft);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* In the request, which is an indigo bubble: coloured words with a line under them. They take their colours only
   when the answer is on the screen (ph-answered): the AI marks them, not the typing. */

.phone .ph-msg-user mark {
  background: none;
  box-shadow: none;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.5s, text-decoration-color 0.5s;
}

.phone .ph-msg-user.ph-answered mark {
  color: var(--k);
  text-decoration-color: currentColor;
}

/* composer and tab bar */

.phone .ph-composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 84px;
  padding: 52px 20px 12px;
  z-index: 20;
}

.phone .ph-new-chat {
  position: absolute;
  right: 24px;
  top: 8px;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  display: grid;
  place-items: center;
  color: var(--site-brand);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
}

.phone .ph-input-bar {
  min-height: 52px;
  background: var(--site-surface);
  border-radius: 24px;
  border: 1px solid var(--app-line2);
  padding: 0 6px 0 4px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
}

.phone .ph-input-bar .ph-emoji {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--site-muted);
}

.phone .ph-input-bar .ph-input {
  flex: 1;
  min-width: 0;
  padding: 12px 6px 12px 2px;
  font-size: 16px;
  line-height: 20px;
  color: var(--app-ink2);
  overflow-wrap: anywhere;
}

.phone .ph-placeholder {
  color: var(--app-mute2);
}

.phone .ph-send-button {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--app-grey);
  color: var(--site-muted);
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.phone .ph-send-button.on {
  background: var(--site-brand);
  color: var(--site-surface);
}

.phone .ph-send-button.tap,
.phone .ph-request-buttons .ph-send.tap,
.phone .ph-dialog-card span.tap {
  transform: scale(0.9);
}

.phone .ph-quota {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  background: var(--app-red);
  color: var(--site-surface);
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.phone .ph-tab-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 72px;
  background: var(--site-surface);
  border-radius: 20px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.05);
  z-index: 40;
}

.phone .ph-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  color: var(--app-mute2);
}

.phone .ph-tab .ph-tab-icon {
  min-height: 28px;
  display: grid;
  place-items: center;
}

.phone .ph-tab .ph-icon {
  width: 22px;
  height: 22px;
}

.phone .ph-tab i {
  margin-top: 4px;
  width: 20px;
  height: 3px;
  border-radius: 999px;
}

.phone .ph-tab > span:last-child {
  margin-top: 2px;
  max-width: 100%;
  font-size: 9px;
  line-height: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone .ph-tab.on {
  color: var(--site-brand);
}

.phone .ph-tab.on .ph-icon {
  width: 24px;
  height: 24px;
}

.phone .ph-tab.on i {
  background: var(--site-accent);
}

.phone .ph-tab.on > span:last-child {
  font-weight: 700;
}

/* chat thread */

.phone .ph-thread-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 59px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 10px;
  background: var(--site-bg);
  border-bottom: 1px solid var(--app-line3);
  z-index: 30;
}

.phone .ph-thread-head .ph-back {
  flex: none;
  width: 40px;
  height: 40px;
  margin: 0 -8px;
  display: grid;
  place-items: center;
  color: var(--site-brand);
}

.phone .ph-thread-head .ph-thread-avatar {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 2px solid rgba(74, 45, 69, 0.2);
  background: var(--site-line);
  overflow: hidden;
}

.phone .ph-thread-head .ph-thread-name {
  flex: 1;
  min-width: 0;
}

.phone .ph-thread-head .ph-thread-name b {
  display: block;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone .ph-thread-head .ph-thread-name small {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--app-mute2);
}

.phone .ph-thread-head .ph-thread-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.phone .ph-thread-head .ph-thread-actions > span {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.phone .ph-thread-head .ph-spark {
  color: var(--site-brand);
}

.phone .ph-thread-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 59px;
  bottom: 0;
  overflow: hidden;
}

.phone .ph-thread-messages {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 72px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

.phone .ph-bubble-mine {
  align-self: flex-end;
  max-width: 85%;
  background: var(--site-brand);
  color: var(--site-surface);
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  font-size: 14px;
  line-height: 19px;
  margin-bottom: 12px;
}

.phone .ph-bubble-mine .ph-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  font-size: 10px;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.phone .ph-bubble-mine .ph-bubble-meta .ph-icon {
  color: rgba(255, 255, 255, 0.85);
}

.phone .ph-bubble-theirs {
  align-self: flex-start;
  max-width: 85%;
  background: var(--site-line);
  color: var(--app-ink2);
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  font-size: 14px;
  line-height: 19px;
}

.phone .ph-bubble-time {
  font-size: 10px;
  line-height: 14px;
  color: var(--app-mute2);
  margin: 4px 0 12px;
}

.phone .ph-thread-composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  padding: 4px 16px 0;
}

.phone .ph-thread-composer .ph-input-bar,
.phone .ph-drawer-ask .ph-input-bar {
  box-shadow: none;
}

.phone .ph-dim {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.24);
  opacity: 0;
  transition: opacity 0.22s;
  z-index: 99;
}

.phone .ph-dim.on {
  opacity: 1;
}

.phone .ph-drawer {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: 306px;
  background: var(--site-surface);
  border-radius: 20px;
  border: 1px solid var(--site-line);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  z-index: 100;
  transform: translateX(330px);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.phone .ph-drawer.on {
  transform: none;
}

.phone .ph-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--app-line2);
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  color: var(--site-ink);
}

.phone .ph-drawer-head .ph-icon {
  color: var(--site-brand);
}

.phone .ph-drawer-analyze {
  position: relative;
  margin: 12px 16px;
  background: var(--site-brand);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--site-surface);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.phone .ph-drawer-thread {
  flex: 1;
  min-height: 0;
  padding: 8px 16px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phone .ph-drawer-bubble {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 10px;
}

.phone .ph-drawer-bubble.from-ai {
  align-self: flex-start;
  background: var(--app-line2);
  color: var(--app-ink2);
  border-bottom-left-radius: 4px;
}

.phone .ph-drawer-bubble.from-user {
  align-self: flex-end;
  background: var(--site-brand);
  color: var(--site-surface);
  border-bottom-right-radius: 4px;
}

.phone .ph-drawer-bubble.from-user small {
  display: block;
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
}

.phone .ph-drawer-ask {
  padding: 4px 16px 8px;
}

.phone .ph-drawer-ask .ph-input-bar {
  padding: 0 4px 0 14px;
}

.phone .ph-drawer-ask .ph-input {
  font-size: 14px;
  padding-left: 0;
}

/* chat request modal and confirmation dialog */

.phone .ph-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.phone .ph-overlay.on {
  opacity: 1;
  visibility: visible;
}

.phone .ph-request-card {
  width: 100%;
  background: var(--site-surface);
  border-radius: 24px;
  padding: 20px;
}

.phone .ph-request-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.phone .ph-request-head i {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--site-soft);
  color: var(--site-brand);
  display: grid;
  place-items: center;
}

.phone .ph-request-head b {
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.phone .ph-request-sub {
  font-size: 13px;
  line-height: 18px;
  color: var(--site-muted);
  text-align: center;
  margin-bottom: 12px;
}

.phone .ph-request-input {
  min-height: 72px;
  border: 1px solid var(--site-line);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 20px;
  margin-bottom: 12px;
  color: var(--site-ink);
  overflow-wrap: anywhere;
}

.phone .ph-request-buttons {
  display: flex;
  gap: 12px;
}

.phone .ph-request-buttons span {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 16px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  transition: opacity 0.15s, transform 0.15s;
}

.phone .ph-request-buttons .ph-cancel {
  background: var(--site-soft);
  color: var(--site-brand);
}

.phone .ph-request-buttons .ph-send {
  background: var(--site-brand);
  color: var(--site-surface);
}

.phone .ph-request-buttons .ph-send.disabled {
  opacity: 0.5;
}

.phone .ph-dialog-card {
  width: 100%;
  background: var(--site-surface);
  border-radius: 24px;
  padding: 24px 24px 20px;
  text-align: center;
}

.phone .ph-dialog-card b {
  display: block;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.phone .ph-dialog-card p {
  font-size: 15px;
  line-height: 24px;
  color: var(--site-muted);
  margin: 0 0 20px;
}

.phone .ph-dialog-card span {
  display: block;
  background: var(--site-brand);
  color: var(--site-surface);
  border-radius: 16px;
  padding: 14px 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  transition: transform 0.15s;
}

/* More scenarios: AI Picks, the profile assistant, tests, the "How to search?" card, a public profile */

.phone .ph-icon-16 {
  width: 16px;
  height: 16px;
}

.phone .ph-icon-17 {
  width: 17px;
  height: 17px;
}

.phone .ph-tab .ph-icon.filled {
  display: none;
}

.phone .ph-tab.on .ph-icon.filled {
  display: block;
}

.phone .ph-tab.on .ph-icon.outline {
  display: none;
}

.phone .ph-screen.over {
  z-index: 120;
}

.phone .ph-match-card {
  transition: box-shadow 0.2s;
}

.phone .ph-match-card.tap {
  box-shadow: 0 0 0 5px rgba(195, 177, 207, 0.6);
}

.phone .ph-hint-link {
  transition: transform 0.15s;
}

.phone .ph-hint-link.tap {
  transform: scale(0.93);
}

/* follow-up question about a person the AI has already shown */

.phone .ph-follow-up-hint {
  margin: 10.5px 0 0 7px;
  font-size: 13px;
  line-height: 21px;
  color: var(--app-mute2);
}

.phone .ph-msg-user.follow-up {
  margin-top: 21px;
}

.phone .ph-msg-ai.follow-up {
  position: relative;
  padding-right: 42px;
  margin-bottom: 21px;
}

.phone .ph-msg-ai .ph-copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--site-muted);
  display: grid;
  place-items: center;
}

/* AI Picks tab */

.phone .ph-round-button {
  position: relative;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  display: grid;
  place-items: center;
  color: var(--site-brand);
}

.phone .ph-tab-actions.busy .ph-round-button {
  color: var(--app-mute2);
}

.phone .ph-eraser {
  display: block;
  position: relative;
  width: 15.6px;
  height: 9.2px;
  border-radius: 3px;
  background: currentColor;
  transform: rotate(-28deg);
  overflow: hidden;
}

.phone .ph-eraser:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 28%;
  background: rgba(255, 255, 255, 0.38);
}

.phone .ph-quota.small {
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 3px;
  font-size: 10px;
  line-height: 16px;
}

.phone .ph-picks-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 21px;
  text-align: center;
}

.phone .ph-picks-unknown {
  display: flex;
  gap: 10px;
  margin-bottom: 17.5px;
}

.phone .ph-picks-unknown i {
  width: 52px;
  height: 52px;
  border-radius: 26px;
  border: 1.5px dashed var(--site-accent);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
  color: var(--site-accent);
}

.phone .ph-picks-empty b {
  font-size: 17.5px;
  line-height: 24.5px;
  font-weight: 700;
  padding: 0 7px;
  margin-bottom: 7px;
}

.phone .ph-picks-empty p {
  font-size: 15px;
  line-height: 24.4px;
  color: var(--site-muted);
  margin: 0 0 21px;
  padding: 0 7px;
}

.phone .ph-picks-find {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--site-brand);
  color: var(--site-surface);
  border-radius: 14px;
  padding: 14px 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.2s;
}

.phone .ph-picks-find span {
  margin-left: 5.25px;
}

.phone .ph-picks-find.tap {
  transform: scale(0.97);
  box-shadow: 0 0 0 7px rgba(195, 177, 207, 0.5);
}

.phone .ph-picks-empty small,
.phone .ph-more-footer small {
  display: block;
  margin-top: 7px;
  font-size: 10.5px;
  line-height: 14px;
  color: var(--site-muted);
  text-align: center;
}

.phone .ph-picks-summary {
  display: flex;
  align-items: flex-start;
  gap: 10.5px;
  background: var(--site-surface);
  border: 1px solid var(--app-line2);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 17.5px;
  font-size: 15px;
  line-height: 24.4px;
  color: var(--app-ink2);
}

.phone .ph-picks-summary > i {
  flex: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--site-soft);
  color: var(--site-brand);
  display: grid;
  place-items: center;
}

.phone .ph-picks-summary .ph-spinner {
  margin: 0;
}

.phone .ph-more-footer {
  padding-top: 17.5px;
}

.phone .ph-more-footer p {
  font-size: 13px;
  line-height: 21.1px;
  color: var(--site-muted);
  text-align: center;
  margin: 0 0 10.5px;
}

.phone .ph-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--site-surface);
  border: 1px solid var(--site-brand);
  border-radius: 14px;
  padding: 14px 0;
  color: var(--site-brand);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

.phone .ph-more-button span {
  margin-left: 5.25px;
}

/* own profile (view mode) and the public profile */

.phone .ph-profile-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding-top: 3.5px;
}

.phone .ph-profile-actions > span {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--site-brand);
  transition: transform 0.2s, box-shadow 0.2s;
}

.phone .ph-profile-actions .ph-ink,
.phone .ph-user-head .ph-ink {
  color: var(--site-ink);
}

.phone .ph-profile-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding-top: 56px;
  overflow: hidden;
}

.phone .ph-profile-avatar {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.phone .ph-profile-avatar > span {
  display: block;
  position: relative;
  width: 186px;
  height: 186px;
  border-radius: 50%;
  background: var(--site-bg);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

.phone .ph-profile-avatar .ph-photo {
  left: 3px;
  top: 3px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--site-line);
}

.phone .ph-profile-identity {
  padding: 18px 16px 0;
}

.phone .ph-profile-identity b {
  display: block;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
}

.phone .ph-profile-identity small {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--site-muted);
  margin-top: 2px;
}

.phone .ph-profile-tabs {
  display: flex;
  margin: 6px 17.5px 8px;
  border-bottom: 1px solid var(--app-hair);
  overflow: hidden;
}

.phone .ph-profile-tabs > span {
  flex: none;
  min-width: 76px;
  min-height: 72px;
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-bottom: 3px solid transparent;
  color: var(--app-fb);
}

.phone .ph-profile-tabs > span.on {
  border-bottom-color: var(--site-brand);
  color: var(--site-brand);
}

.phone .ph-profile-tabs em {
  font-style: normal;
  font-size: 12px;
  line-height: 16px;
  min-height: 32px;
  text-align: center;
  white-space: pre-line;
}

.phone .ph-profile-tabs > span.on em {
  font-weight: 600;
}

.phone .ph-profile-tabs > span.two-line {
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
}

.phone .ph-profile-tabs > span.two-line em {
  line-height: 15px;
}

.phone .ph-profile-feed {
  padding: 0 17.5px;
}

.phone .ph-profile-section {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 6px;
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
}

.phone .ph-profile-section.spaced {
  padding-top: 20px;
}

.phone .ph-profile-section .ph-icon,
.phone .ph-profile-field small .ph-icon {
  color: var(--site-brand);
}

.phone .ph-profile-field {
  padding: 8.75px 0;
  border-bottom: 1px solid var(--app-line2);
}

.phone .ph-profile-field small {
  display: flex;
  align-items: center;
  gap: 5.25px;
  font-size: 13px;
  line-height: 17px;
  color: var(--site-muted);
  margin-bottom: 1.75px;
}

.phone .ph-profile-field p {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: var(--site-ink);
}

.phone .ph-user-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 20px 16px 12px;
  background: var(--site-bg);
  border-bottom: 1px solid var(--app-line3);
}

.phone .ph-user-head .ph-back {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--site-brand);
}

.phone .ph-user-head b {
  flex: 1;
  text-align: center;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.phone .ph-user-head .ph-ink {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.phone .ph-user-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  bottom: 0;
  overflow: hidden;
}

.phone .ph-user-in {
  position: relative;
  padding-bottom: 48px;
}

.phone .ph-user-in .ph-profile-tabs {
  margin-left: 16px;
  margin-right: 16px;
}

.phone .ph-user-in .ph-profile-feed {
  padding: 0 16px 16px;
}

.phone .ph-user-in .ph-profile-field {
  padding: 10px 0;
  border-bottom-color: var(--app-hair2);
}

.phone .ph-user-in .ph-profile-field small {
  color: var(--app-fb);
  gap: 6px;
  margin-bottom: 2px;
}

.phone .ph-user-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 20px 24px;
  background: var(--site-brand);
  color: var(--site-surface);
  border-radius: 16px;
  padding: 16px 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(74, 45, 69, 0.25);
}

/* profile assistant drawer: analysis bubble and the "suggested changes" card */

.phone .ph-dim.on-profile {
  top: 48px;
}

.phone .ph-drawer.on-profile {
  top: 58px;
}

.phone .ph-drawer-analyze {
  transition: transform 0.15s, opacity 0.2s;
}

.phone .ph-drawer-analyze.busy {
  opacity: 0.6;
}

.phone .ph-drawer-analyze.tap {
  transform: scale(0.96);
}

.phone .ph-spinner.light {
  width: 16px;
  height: 16px;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: var(--site-surface);
}

.phone .ph-drawer-thread-in {
  flex: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}

.phone .ph-drawer-bubble.analysis {
  align-self: flex-start;
  background: var(--site-soft);
  color: var(--app-ink2);
  border-bottom-left-radius: 4px;
  white-space: pre-line;
}

.phone .ph-patch {
  align-self: flex-start;
  max-width: 90%;
  background: var(--app-patch-bg);
  border: 1px solid var(--app-patch-line);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.phone .ph-patch b {
  display: block;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--app-patch-title);
  margin-bottom: 8px;
}

.phone .ph-patch ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.phone .ph-patch li {
  font-size: 13px;
  line-height: 19px;
  color: var(--app-ink2);
  margin-bottom: 4px;
}

.phone .ph-patch-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.phone .ph-patch-buttons > span {
  flex: 1;
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  padding: 10px 4px;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  transition: transform 0.15s;
}

.phone .ph-patch-buttons .ph-apply {
  background: var(--site-brand);
  color: var(--site-surface);
  font-weight: 700;
}

.phone .ph-patch-buttons .ph-apply em {
  font-style: normal;
}

.phone .ph-patch-buttons .ph-decline {
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  color: var(--site-muted);
  font-weight: 600;
}

.phone .ph-patch-buttons .ph-apply.tap {
  transform: scale(0.93);
}

.phone .ph-patch-done {
  margin-top: 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--app-patch-ok);
}

.phone .ph-dialog-card.plain {
  border-radius: 21px;
  padding: 21px 21px 17.5px;
}

.phone .ph-dialog-card.plain p {
  line-height: 21px;
  margin-bottom: 17.5px;
}

.phone .ph-dialog-card.plain span {
  border-radius: 14px;
  padding: 12.25px 0;
  font-size: 12.25px;
  line-height: 17.5px;
}

/* AI HUB: the two tests */

.phone .ph-hub-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  padding: 8px 17.5px 14px;
  background: var(--site-bg);
}

.phone .ph-hub-back {
  flex: none;
  width: 35px;
  height: 35px;
  margin: 3px 10.5px 0 0;
  border-radius: 14px;
  background: var(--site-surface);
  border: 1px solid var(--app-line2);
  display: grid;
  place-items: center;
  color: var(--app-ink2);
}

.phone .ph-hub-title {
  flex: 1;
  min-width: 0;
  padding-right: 10.5px;
}

.phone .ph-hub-title b {
  display: block;
  font-size: 32px;
  line-height: 40px;
  font-weight: 800;
  letter-spacing: -0.8px;
  white-space: nowrap;
}

.phone .ph-hub-title small {
  display: block;
  margin-top: 1.75px;
  font-size: 12.25px;
  line-height: 17.5px;
  color: var(--site-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone .ph-hub-tile {
  flex: none;
  width: 38.5px;
  height: 38.5px;
  border-radius: 14px;
  background: var(--app-lilac);
  color: var(--site-brand);
  display: grid;
  place-items: center;
}

.phone .ph-hub-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 89px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone .ph-test-card {
  --acc: var(--site-brand);
  --soft: var(--site-soft);
  background: var(--site-surface);
  border: 1px solid var(--app-line2);
  border-radius: 26px;
  padding: 17.5px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.phone .ph-test-card.alt {
  --acc: var(--app-teal);
  --soft: var(--app-teal-soft);
}

.phone .ph-test-card.tap {
  transform: scale(0.975);
  box-shadow: 0 0 0 6px rgba(195, 177, 207, 0.55);
}

.phone .ph-test-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.phone .ph-test-icon {
  flex: none;
  width: 49px;
  height: 49px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--acc);
  display: grid;
  place-items: center;
}

.phone .ph-test-icon .ph-icon {
  width: 28px;
  height: 28px;
}

.phone .ph-test-top > div {
  flex: 1;
  min-width: 0;
}

.phone .ph-test-badge {
  display: inline-block;
  font-style: normal;
  background: var(--soft);
  color: var(--acc);
  border-radius: 999px;
  padding: 3.5px 8.75px;
  margin-bottom: 7px;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.phone .ph-test-top b {
  display: block;
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
}

.phone .ph-test-top p {
  margin: 5.25px 0 0;
  font-size: 12.25px;
  line-height: 17.5px;
  color: var(--site-muted);
}

.phone .ph-test-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 17px;
  margin-top: 17.5px;
  padding-top: 14px;
  border-top: 1px solid var(--app-line2);
  box-sizing: content-box;
}

.phone .ph-test-meta {
  display: flex;
  align-items: center;
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 600;
  color: var(--app-mute2);
}

.phone .ph-test-meta span {
  margin-left: 5.25px;
}

.phone .ph-test-go {
  display: flex;
  align-items: center;
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 700;
  color: var(--acc);
}

.phone .ph-test-go span {
  margin-right: 3.5px;
}

.phone .ph-test-foot .ph-spinner {
  width: 15px;
  height: 15px;
  margin: 0;
  border-width: 2px;
}

.phone .ph-test-safety {
  display: flex;
  align-items: flex-start;
  margin-top: 3.5px;
  background: var(--site-soft);
  border-radius: 14px;
  padding: 14px;
  color: var(--site-brand);
  font-size: 10.5px;
  line-height: 17.5px;
  font-weight: 600;
}

.phone .ph-test-safety span {
  flex: 1;
  margin-left: 10.5px;
}

/* a test: questions in chat format */

.phone .ph-hub-test {
  position: absolute;
  left: 0;
  right: 0;
  top: 81px;
  bottom: 0;
}

.phone .ph-test-progress {
  padding: 7px 17.5px 10.5px;
}

.phone .ph-test-progress div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 600;
  color: var(--site-muted);
}

.phone .ph-test-progress b {
  font-weight: 700;
  color: var(--site-brand);
}

.phone .ph-test-progress > i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: var(--site-line);
  overflow: hidden;
}

.phone .ph-test-progress em {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: var(--app-violet);
  width: 0;
  transition: width 0.4s ease;
}

.phone .ph-test-chat {
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  bottom: 0;
  overflow: hidden;
}

.phone .ph-test-chat-in {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 20px 0;
  transition: transform 0.45s ease;
}

.phone .ph-test-question {
  align-self: flex-start;
  max-width: 92%;
  background: var(--site-line);
  color: var(--app-ink2);
  padding: 14px 17.5px;
  border-radius: 1.75px 21px 21px 21px;
  font-size: 15px;
  line-height: 23px;
  margin-bottom: 17.5px;
}

.phone .ph-test-answer {
  align-self: flex-end;
  max-width: 86%;
  background: var(--site-brand);
  color: var(--site-surface);
  padding: 14px 17.5px;
  border-radius: 21px 1.75px 21px 21px;
  font-size: 15px;
  line-height: 21px;
  margin-bottom: 17.5px;
}

.phone .ph-test-thinking {
  align-self: flex-start;
  display: flex;
  align-items: center;
  background: var(--site-line);
  padding: 10.5px 17.5px;
  border-radius: 1.75px 21px 21px 21px;
  font-size: 12.25px;
  line-height: 17.5px;
  font-weight: 500;
  color: var(--app-ink3);
  margin-bottom: 17.5px;
}

.phone .ph-test-thinking .ph-spinner {
  width: 15px;
  height: 15px;
  border-width: 2px;
}

.phone .ph-test-options {
  background: var(--site-surface);
  border: 1px solid var(--app-line2);
  border-radius: 24px;
  padding: 14px;
  margin-bottom: 17.5px;
}

.phone .ph-test-options small {
  display: block;
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 600;
  color: var(--site-muted);
  margin-bottom: 10.5px;
}

.phone .ph-test-option {
  display: flex;
  align-items: center;
  border: 1px solid var(--site-line);
  border-radius: 14px;
  padding: 10.5px 14px;
  margin-bottom: 8px;
  font-size: 12.25px;
  line-height: 17.5px;
  color: var(--app-ink2);
  background: var(--site-surface);
  transition: background 0.15s, border-color 0.15s;
}

.phone .ph-test-option i {
  flex: none;
  position: relative;
  width: 17.5px;
  height: 17.5px;
  border-radius: 50%;
  border: 2px solid var(--app-grey);
  margin-right: 10.5px;
}

.phone .ph-test-option.on {
  background: var(--site-soft);
  border-color: var(--app-violet);
  font-weight: 600;
}

.phone .ph-test-option.on i {
  border-color: var(--site-brand);
}

.phone .ph-test-option.on i:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8.75px;
  height: 8.75px;
  margin: -4.375px 0 0 -4.375px;
  border-radius: 50%;
  background: var(--site-brand);
}

.phone .ph-test-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-top: 10.5px;
}

.phone .ph-test-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border-radius: 14px;
  background: var(--site-bg);
  border: 1px solid var(--site-line);
  padding: 10.5px 14px;
  font-size: 14px;
  line-height: 20px;
  color: var(--app-mute2);
  display: flex;
  align-items: center;
}

.phone .ph-test-send {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--site-line);
  color: var(--app-mute2);
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.phone .ph-test-send.on {
  background: var(--site-brand);
  color: var(--site-surface);
}

.phone .ph-test-send.tap {
  transform: scale(0.88);
}

/* the result: scores by formula, portrait written by AI */

.phone .ph-result-card {
  background: var(--site-surface);
  border: 1px solid var(--app-line2);
  border-radius: 26px;
  padding: 17.5px;
  margin-bottom: 17.5px;
}

.phone .ph-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10.5px;
}

.phone .ph-result-head > div {
  flex: 1;
  min-width: 0;
}

.phone .ph-result-head small {
  display: block;
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  color: var(--app-mute2);
}

.phone .ph-result-head b {
  display: block;
  margin-top: 3.5px;
  font-size: 17.5px;
  line-height: 24.5px;
  font-weight: 800;
}

.phone .ph-result-head > i {
  flex: none;
  width: 38.5px;
  height: 38.5px;
  border-radius: 14px;
  background: var(--site-soft);
  color: var(--site-brand);
  display: grid;
  place-items: center;
}

.phone .ph-traits {
  margin-top: 17.5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone .ph-trait div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5.25px;
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 600;
  color: var(--app-ink3);
}

.phone .ph-trait div b {
  font-weight: 700;
  color: var(--site-brand);
}

.phone .ph-trait > i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: var(--app-line2);
  overflow: hidden;
}

.phone .ph-trait em {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: var(--app-violet);
}

.phone .ph-result-summary {
  margin: 17.5px 0 0;
  font-size: 12.25px;
  line-height: 21px;
  color: var(--app-ink3);
}

.phone .ph-result-strengths {
  margin-top: 17.5px;
  background: var(--app-green-bg);
  border-radius: 14px;
  padding: 14px;
}

.phone .ph-result-strengths > b,
.phone .ph-result-relations > b,
.phone .ph-result-growth > b {
  display: block;
  font-size: 12.25px;
  line-height: 17.5px;
  font-weight: 700;
  margin-bottom: 7px;
}

.phone .ph-result-strengths > b {
  color: var(--app-green1);
}

.phone .ph-result-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.phone .ph-result-card li {
  font-size: 12.25px;
  line-height: 17.5px;
  margin-bottom: 3.5px;
}

.phone .ph-result-strengths li {
  color: var(--app-green2);
}

.phone .ph-result-relations {
  margin-top: 14px;
  background: var(--app-lilac2);
  border-radius: 14px;
  padding: 14px;
}

.phone .ph-result-relations > b {
  color: var(--site-brand);
}

.phone .ph-result-relations p {
  margin: 0;
  font-size: 12.25px;
  line-height: 17.5px;
  color: var(--app-ink3);
}

.phone .ph-result-growth {
  margin-top: 14px;
}

.phone .ph-result-growth li {
  color: var(--app-ink3);
}

.phone .ph-result-disclaimer {
  margin: 17.5px 0 0;
  font-size: 11px;
  line-height: 14px;
  color: var(--app-mute2);
}

.phone .ph-result-retake {
  display: block;
  margin-top: 17.5px;
  border: 1px solid rgba(74, 45, 69, 0.2);
  border-radius: 14px;
  padding: 12.25px 0;
  text-align: center;
  font-size: 12.25px;
  line-height: 17.5px;
  font-weight: 700;
  color: var(--site-brand);
}

/* "How to search?" card */

.phone .ph-overlay.soft {
  background: rgba(15, 23, 42, 0.45);
}

.phone .ph-hint-card {
  width: 100%;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  background: var(--site-soft);
  border: 1px solid var(--app-hint-line);
  border-radius: 20px;
  padding: 18px;
  overflow: hidden;
}

.phone .ph-hint-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phone .ph-hint-head b {
  flex: 1;
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  color: var(--site-brand);
}

.phone .ph-hint-head .ph-icon {
  color: var(--site-muted);
}

.phone .ph-hint-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.phone .ph-hint-text > b {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  color: var(--site-ink);
}

.phone .ph-hint-text > b.spaced {
  margin-top: 22px;
}

.phone .ph-hint-text > p {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--app-ink3);
}

.phone .ph-hint-actions {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--site-brand);
}

.phone .ph-hint-actions span {
  transition: transform 0.15s;
}

.phone .ph-hint-actions span.tap {
  transform: scale(0.88);
}

/* search precision: the Show more footer, the end-of-list card, the next batch and the slider modal */

.phone .ph-msg-ai.solo {
  position: relative;
  padding-right: 42px;
}

.phone .ph-msg-ai.solo:not([hidden]) + .ph-msg-ai {
  margin-top: 21px;
}

.phone .ph-msg-thinking.spaced {
  margin-top: 21px;
}

.phone .ph-msg-ai.more-intro {
  margin-top: 21px;
}

.phone .search-more {
  margin: 21px 0;
  padding-top: 0;
}

.phone .ph-list-end {
  margin: 21px 0;
  background: var(--site-surface);
  border: 1px solid var(--app-line2);
  border-radius: 14px;
  padding: 14px;
}

.phone .ph-list-end p {
  margin: 0 0 10.5px;
  font-size: 12.25px;
  line-height: 19.9px;
  color: var(--app-ink2);
  text-align: center;
}

.phone .ph-list-end small {
  display: block;
  margin-top: 7px;
  font-size: 10.5px;
  line-height: 14px;
  color: var(--site-muted);
  text-align: center;
}

.phone .ph-more-button {
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.phone .ph-more-button.tap {
  transform: scale(0.97);
  box-shadow: 0 0 0 6px rgba(195, 177, 207, 0.5);
}

.phone .ph-more-button.busy {
  opacity: 0.6;
}

.phone .ph-more-button .ph-spinner {
  width: 18px;
  height: 18px;
  margin: 0;
}

.phone .ph-filter-chip.ph-temp.tap {
  box-shadow: 0 0 0 6px rgba(195, 177, 207, 0.5);
}

.phone .ph-overlay.tight {
  padding: 0 21px;
}

.phone .ph-temp-modal {
  width: 100%;
  background: var(--site-surface);
  border-radius: 21px;
  padding: 21px;
}

.phone .ph-temp-modal > b {
  display: block;
  text-align: center;
  font-size: 15.75px;
  line-height: 24.5px;
  font-weight: 700;
  margin-bottom: 7px;
}

.phone .ph-temp-modal > p {
  margin: 0 0 17.5px;
  text-align: center;
  font-size: 12.25px;
  line-height: 19.9px;
  color: var(--site-muted);
}

.phone .ph-temp-modal .ph-temp-scale {
  margin-bottom: 3.5px;
}

.phone .ph-temp-modal .ph-temp-track {
  height: 44px;
  margin: 4px 0;
}

.phone .ph-temp-modal .ph-temp-track i {
  top: 18px;
}

.phone .ph-temp-modal .ph-temp-track b {
  top: 12px;
}

.phone .ph-temp-modal .ph-temp-legend {
  margin: 3.5px 0;
}

.phone .ph-temp-modal .ph-temp-legend span {
  white-space: normal;
}

.phone .ph-temp-done {
  display: block;
  margin-top: 17.5px;
  background: var(--site-brand);
  color: var(--site-surface);
  border-radius: 14px;
  padding: 12.25px 0;
  text-align: center;
  font-size: 12.25px;
  line-height: 17.5px;
  font-weight: 700;
  transition: transform 0.15s;
}

.phone .ph-temp-done.tap {
  transform: scale(0.94);
}

/* Visitors who asked for reduced motion get still frames: spinners, cursors and slides do not move. */

@media (prefers-reduced-motion: reduce) {
  .phone * {
    animation: none !important;
    transition: none !important;
  }
}
