/* Julee client workspace.
   White paper, the logo's dark wine, and the leaf that grows through it all.
   One accent family: wine, deepened for the rail and thinned to blush for tints. */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/client-assets/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/client-assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/client-assets/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

.client-studio {
  --wine: #650d20;
  --wine-hover: #4e0a19;
  --wine-deep: #3a0711;
  --wine-night: #2a050d;
  --ink: #1d1416;
  --soft: #6d5d61;
  --faint: #76666a;
  --line: #efe8e9;
  --line-strong: #e3d7d9;
  --canvas: #faf8f8;
  --paper: #ffffff;
  --blush: #f8eef0;
  --blush-strong: #f1dfe2;
  --petal: #dcb4bb;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Manrope, system-ui, sans-serif;
  --r-hero: 24px;
  --r-card: 18px;
  --r-control: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-card: 0 1px 2px rgb(58 7 17 / 4%), 0 18px 40px -24px rgb(58 7 17 / 22%);
  --shadow-lift: 0 2px 4px rgb(58 7 17 / 5%), 0 24px 48px -22px rgb(58 7 17 / 30%);
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-variant-numeric: lining-nums;
}
body.in-studio {
  background: #faf8f8;
}
body.in-studio::before {
  /* One faint wash of wine light from the rail's corner; no beige. */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 36rem at -10% -12%, rgb(101 13 32 / 7%), transparent 60%),
    radial-gradient(40rem 30rem at 110% 0%, rgb(101 13 32 / 3.5%), transparent 60%);
  pointer-events: none;
}
.client-studio :is(h1, h2, h3, p) {
  margin: 0;
}
.client-studio :is(input, textarea, select) {
  color: var(--ink);
}
.client-studio ::selection,
#workspace-dialog ::selection {
  background: var(--blush-strong);
}

/* ---------- Glyphs ---------- */
.glyph {
  --g-accent: var(--wine);
  display: block;
  flex: none;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glyph .g-ink,
.glyph .g-heart,
.glyph .g-ink-dot {
  fill: var(--g-accent);
  stroke: none;
}
.glyph .g-fill {
  fill: currentColor;
  stroke: none;
}
.glyph .g-accent {
  stroke: var(--g-accent);
}
.glyph .g-leaf:not(.g-ink) {
  stroke-width: 1.5;
}
.glyph :is(.g-leaf, .g-bar, .g-heart, .g-dot, .g-pin, .g-awning, .g-blink, .g-sway) {
  transform-box: fill-box;
}
.glyph .g-leaf.g-r {
  transform-origin: 0% 100%;
}
.glyph .g-leaf.g-l {
  transform-origin: 100% 100%;
}
.glyph .g-bar {
  transform-origin: 50% 100%;
}
.glyph :is(.g-heart, .g-dot, .g-blink) {
  transform-origin: center;
}
.glyph .g-pin {
  transform-origin: 50% 100%;
}
.glyph .g-awning {
  transform-origin: 50% 0%;
}
.glyph .g-sway {
  transform-origin: 50% 0%;
}
.glyph .g-stem {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.glyph .g-write {
  stroke-dasharray: 1;
}

@media (prefers-reduced-motion: no-preference) {
  :is(a:hover, button:hover, .arriving [aria-current='page']) > .glyph .g-stem {
    animation: g-rise 520ms var(--ease-out) both;
  }
  :is(a:hover, button:hover, .arriving [aria-current='page']) > .glyph .g-leaf {
    animation: g-unfurl 720ms var(--ease-spring) both;
  }
  :is(a:hover, button:hover, .arriving [aria-current='page']) > .glyph .g-leaf + .g-leaf {
    animation-delay: 90ms;
  }
  :is(a:hover, button:hover, .arriving [aria-current='page']) > .glyph .g-bar {
    animation: g-rise 620ms var(--ease-spring) both;
  }
  :is(a:hover, button:hover, .arriving [aria-current='page']) > .glyph .g-b2 {
    animation-delay: 70ms;
  }
  :is(a:hover, button:hover, .arriving [aria-current='page']) > .glyph .g-b3 {
    animation-delay: 140ms;
  }
  :is(a:hover, button:hover, .arriving [aria-current='page']) > .glyph .g-pop {
    animation: g-unfurl 640ms var(--ease-spring) 240ms both;
  }
  :is(a:hover, button:hover, .arriving [aria-current='page']) > .glyph .g-write {
    animation: g-write 520ms var(--ease-in-out) both;
  }
  :is(a:hover, button:hover, .arriving [aria-current='page']) > .glyph .g-w2 {
    animation-delay: 260ms;
  }
  :is(a:hover, button:hover, .arriving [aria-current='page']) > .glyph .g-sway {
    animation: g-sway 900ms var(--ease-spring);
  }
  :is(a:hover, button:hover, .arriving [aria-current='page']) > .glyph .g-heart {
    animation: g-beat 760ms var(--ease-out);
  }
  :is(a:hover, button:hover, .arriving [aria-current='page']) > .glyph .g-awning {
    animation: g-awning 620ms var(--ease-spring) both;
  }
  :is(a:hover, button:hover) > .glyph .g-nudge {
    animation: g-nudge 520ms var(--ease-out);
  }
  :is(a:hover, button:hover) > .glyph .g-dot {
    animation: g-type 900ms var(--ease-in-out);
  }
  :is(a:hover, button:hover) > .glyph .g-d2 {
    animation-delay: 120ms;
  }
  :is(a:hover, button:hover) > .glyph .g-d3 {
    animation-delay: 240ms;
  }
  :is(a:hover, button:hover) > .glyph .g-blink {
    animation: g-blink 360ms var(--ease-in-out) 80ms;
  }
  :is(a:hover, button:hover) > .glyph .g-rays {
    animation: g-rays 520ms var(--ease-out);
  }
  :is(a:hover, button:hover) > .glyph .g-pin {
    animation: g-hop 620ms var(--ease-spring);
  }
}
@keyframes g-rise {
  from {
    transform: scaleY(0.2);
  }
}
@keyframes g-unfurl {
  0% {
    opacity: 0;
    transform: scale(0.15) rotate(-24deg);
  }
  40% {
    opacity: 1;
  }
}
@keyframes g-write {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes g-sway {
  30% {
    transform: rotate(14deg);
  }
  60% {
    transform: rotate(-7deg);
  }
  85% {
    transform: rotate(3deg);
  }
}
@keyframes g-beat {
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(0.92);
  }
  75% {
    transform: scale(1.08);
  }
}
@keyframes g-awning {
  0% {
    transform: scaleY(0.55);
  }
  55% {
    transform: scaleY(1.1);
  }
}
@keyframes g-nudge {
  45% {
    transform: translateX(2px);
  }
}
@keyframes g-type {
  30% {
    transform: translateY(-1.6px);
  }
  60% {
    transform: none;
  }
}
@keyframes g-blink {
  50% {
    transform: scaleY(0.1);
  }
}
@keyframes g-rays {
  from {
    opacity: 0;
    transform: translate(1px, 1px);
  }
}
@keyframes g-hop {
  40% {
    transform: translateY(-2px) scaleY(1.04);
  }
}

/* ---------- Rail ---------- */
.studio-sidebar {
  position: fixed;
  inset: 16px auto 16px 16px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 252px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 22px 14px 14px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(120% 60% at 0% 0%, rgb(255 255 255 / 10%), transparent 55%),
    radial-gradient(100% 50% at 100% 100%, rgb(160 40 66 / 35%), transparent 60%),
    linear-gradient(170deg, #6c1024 0%, #4b0918 48%, #2f050e 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 14%),
    inset 0 0 0 1px rgb(255 255 255 / 5%),
    0 30px 60px -28px rgb(58 7 17 / 60%),
    0 8px 20px -10px rgb(58 7 17 / 30%);
  scrollbar-width: none;
  transition: width 320ms var(--ease-out);
}
.studio-sidebar::-webkit-scrollbar {
  display: none;
}
.rail-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 0 10px;
  min-height: 52px;
}
.rail-logo {
  display: block;
  border-radius: 10px;
}
.wordmark {
  display: block;
  width: 112px;
  height: auto;
  fill: currentColor;
  overflow: visible;
}
.rail-logo .wordmark {
  color: #fff;
}
.wordmark .wm-leaf {
  transform-box: fill-box;
  transform-origin: 0% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  /* The wordmark's leaf grows in once when the workspace opens; at rest it is
     the approved artwork, untransformed. */
  .arriving .rail-logo .wm-leaf {
    animation: brand-grow 1100ms var(--ease-spring) 200ms both;
  }
}
@keyframes brand-grow {
  from {
    opacity: 0;
    transform: scale(0.1) rotate(-30deg);
  }
  35% {
    opacity: 1;
  }
}
.rail-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 50%;
  color: rgb(255 255 255 / 80%);
  background: rgb(255 255 255 / 6%);
  transition:
    background 160ms,
    color 160ms;
}
.rail-toggle:hover {
  color: #fff;
  background: rgb(255 255 255 / 14%);
}
.rail-toggle svg {
  transition: transform 320ms var(--ease-out);
}
.rail-business {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 18px 0 14px;
  padding: 4px 10px;
}
.business-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--wine);
  background: #fff;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}
.rail-business > div {
  display: grid;
  min-width: 0;
}
.rail-business strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail-business small {
  overflow: hidden;
  color: rgb(255 255 255 / 62%);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-sidebar nav {
  display: grid;
  gap: 2px;
}
.studio-sidebar nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 13px;
  color: rgb(255 255 255 / 78%);
  font-size: 13.5px;
  text-decoration: none;
  transition:
    background 180ms,
    color 180ms;
}
.studio-sidebar nav a .glyph {
  --g-accent: #ffd6de;
}
.studio-sidebar nav a .glyph .g-leaf:not(.g-ink) {
  stroke-width: 1.4;
}
.studio-sidebar nav a:hover {
  color: #fff;
  background: rgb(255 255 255 / 8%);
}
.studio-sidebar nav a[aria-current] {
  color: var(--wine);
  background: #fff;
  font-weight: 600;
  box-shadow:
    0 8px 18px -10px rgb(20 0 5 / 60%),
    inset 0 -1px 0 rgb(101 13 32 / 8%);
}
.studio-sidebar nav a[aria-current] .glyph {
  --g-accent: var(--wine);
}
.studio-sidebar nav small {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  color: rgb(255 255 255 / 80%);
  background: rgb(255 255 255 / 10%);
  font-size: 10.5px;
  font-weight: 600;
}
.studio-sidebar nav a[aria-current] small {
  color: var(--wine);
  background: var(--blush);
}
.nav-group {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}
.nav-group > p {
  margin: 0 0 4px !important;
  padding: 0 12px;
  color: rgb(255 255 255 / 48%);
  font-size: 11.5px;
  font-weight: 600;
}
.rail-bottom {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
}
.rail-bottom button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 13px;
  color: rgb(255 255 255 / 82%);
  background: transparent;
  font-size: 13px;
  text-align: left;
  transition: background 180ms;
}
.rail-bottom button .glyph {
  --g-accent: #f4c9d1;
}
.rail-bottom button:hover {
  color: #fff;
  background: rgb(255 255 255 / 8%);
}
.rail-bottom button[data-action='journey'] {
  background: rgb(255 255 255 / 7%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
}
.rail-bottom button > span {
  display: grid;
  flex: 1;
  gap: 1px;
}
.rail-bottom small {
  color: rgb(255 255 255 / 58%);
  font-size: 11px;
}
.rail-xp {
  display: block;
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgb(255 255 255 / 14%);
}
.rail-xp i {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4c9d1, #fff);
}

/* Folded rail */
.rail-folded .studio-sidebar {
  width: 78px;
  padding-inline: 12px;
}
.rail-folded .rail-brand {
  flex-direction: column;
  padding: 0;
}
.rail-folded .wordmark {
  width: 50px;
}
.rail-folded .rail-business {
  justify-content: center;
  padding: 4px 0;
}
.rail-folded .rail-business > div,
.rail-folded .nav-group > p,
.rail-folded .studio-sidebar nav a > span,
.rail-folded .studio-sidebar nav small,
.rail-folded .rail-bottom button > span {
  display: none;
}
.rail-folded .studio-sidebar nav a,
.rail-folded .rail-bottom button {
  justify-content: center;
  padding: 0;
}
.rail-folded .rail-toggle svg {
  transform: rotate(180deg);
}

/* ---------- Page ---------- */
.studio-page {
  min-height: 100svh;
  margin-left: 284px;
  transition: margin-left 320ms var(--ease-out);
}
.rail-folded .studio-page {
  margin-left: 110px;
}
.studio-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1440px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 40px;
  color: var(--soft);
  font-size: 13px;
}
.studio-topbar > span:first-of-type {
  flex: 1;
}
.studio-topbar strong {
  color: var(--ink);
  font-weight: 600;
}
.breadcrumb-separator {
  margin: 0 10px;
  color: var(--petal);
}
.preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--wine);
  background: var(--paper);
  font-size: 12px;
  font-weight: 600;
  transition:
    background 180ms,
    border-color 180ms;
}
.preview-pill:hover {
  border-color: var(--petal);
  background: var(--blush);
}
.preview-pill .glyph {
  --g-accent: var(--wine);
}
#workspace-dialog .real-tag {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  color: #2f5e43;
  background: #eaf3ec;
  font-size: 12px;
  font-weight: 600;
}
.account-chip {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(160deg, #7a1730, var(--wine-deep));
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 14px -8px rgb(58 7 17 / 70%);
}
.studio-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px 40px;
  outline: none;
}
.preview-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--soft);
  background: var(--paper);
  font-size: 12.5px;
}
.preview-notice svg {
  color: var(--wine);
}
.preview-notice strong {
  color: var(--ink);
  font-weight: 600;
}

/* Greeting: the brand leaf, the name, the day. */
.hello {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}
.hello h1,
.page-heading h1 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(38px, 3.6vw, 54px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hello p,
.page-heading p {
  max-width: 60ch;
  margin-top: 8px !important;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.55;
}
.hello p strong {
  color: var(--wine);
  font-weight: 600;
}
.hello-leaf {
  display: grid;
  flex: none;
  place-items: center;
  width: 84px;
  height: 84px;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(80% 80% at 30% 20%, rgb(255 255 255 / 18%), transparent 60%),
    linear-gradient(160deg, #7a1730, var(--wine-deep));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 18%),
    0 18px 34px -16px rgb(58 7 17 / 70%);
}
.brand-leaf {
  display: block;
  width: 46px;
  height: 46px;
  fill: #fff;
  overflow: visible;
}
.brand-leaf-grow {
  transform-box: fill-box;
  transform-origin: 0% 100%;
}
.hello-leaf .brand-leaf {
  transform: rotate(var(--lean, 0deg));
  transform-origin: 30% 90%;
  transition: transform 600ms var(--ease-spring);
}
.good-day {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  color: var(--wine);
  background: var(--blush);
  font-size: 13px;
}
.good-day > .glyph {
  padding: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--wine);
  --g-accent: #ffd6de;
}
.good-day b {
  font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  .arriving .is-good .good-day {
    animation: chip-in 700ms var(--ease-spring) 900ms both;
  }
  .arriving .is-good .good-day > .glyph .g-stem {
    animation: g-rise 520ms var(--ease-out) 1100ms both;
  }
  .arriving .is-good .good-day > .glyph .g-leaf {
    animation: g-unfurl 720ms var(--ease-spring) 1250ms both;
  }
  .arriving .is-good .hello-leaf {
    animation: tile-glow 1600ms var(--ease-out) 700ms;
  }
}
@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
}
@keyframes tile-glow {
  30% {
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 18%),
      0 0 0 10px rgb(101 13 32 / 10%),
      0 18px 34px -16px rgb(58 7 17 / 70%);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .arriving .hello-leaf .brand-leaf-grow {
    animation: brand-grow 1200ms var(--ease-spring) 150ms both;
  }
  .hello-leaf:hover .brand-leaf-grow {
    animation: leaf-sway 900ms var(--ease-spring);
  }
}
@keyframes leaf-sway {
  30% {
    transform: rotate(-9deg);
  }
  60% {
    transform: rotate(5deg);
  }
  85% {
    transform: rotate(-2deg);
  }
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

/* Tags */
.demo-tag,
.real-tag,
.count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.demo-tag {
  color: var(--wine);
  background: var(--blush);
}
.demo-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.real-tag {
  color: #2f5e43;
  background: #eaf3ec;
}
.count {
  min-width: 26px;
  justify-content: center;
  color: #fff;
  background: var(--wine);
}

/* Surfaces */
.surface {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-hero);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.panel-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.panel-heading h2,
.section-heading h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.panel-heading p {
  margin-top: 4px !important;
  color: var(--faint);
  font-size: 12.5px;
}
.section-heading {
  align-items: center;
  margin: 0 4px 14px;
}

/* Metrics */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

/* Dashboard grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.dashboard-grid > .surface {
  min-width: 0;
}

/* Chart */
.trend-wrap {
  position: relative;
}
.trend-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: pan-y;
}
.trend-chart text {
  fill: var(--faint);
  font-size: 11px;
}
.trend-chart .grid {
  stroke: var(--line);
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}
.trend-area {
  fill: url(#chart-fill);
}
.trend-line {
  fill: none;
  stroke: var(--wine);
  stroke-width: 2.6;
  stroke-linecap: round;
}
.trend-dot {
  fill: var(--wine);
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 3px 6px rgb(101 13 32 / 40%));
  transition:
    cx 160ms var(--ease-out),
    cy 160ms var(--ease-out);
}
.trend-cursor {
  stroke: var(--petal);
  stroke-dasharray: 3 4;
  opacity: 0;
  transition:
    x1 160ms var(--ease-out),
    x2 160ms var(--ease-out),
    opacity 160ms;
}
.hovering .trend-cursor {
  opacity: 1;
}
.trend-tip {
  position: absolute;
  left: var(--x, 0);
  top: var(--y, 0);
  display: grid;
  gap: 1px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #fff;
  background: var(--wine-deep);
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgb(58 7 17 / 80%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  transition:
    opacity 160ms,
    left 160ms var(--ease-out),
    top 160ms var(--ease-out);
}
.trend-tip span {
  color: rgb(255 255 255 / 65%);
  font-size: 11px;
}
.hovering .trend-tip {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .trend-chart.draw .trend-line {
    stroke-dasharray: 1;
    animation: g-write 1300ms var(--ease-in-out) both;
  }
  .trend-chart.draw .trend-area {
    animation: fade-in 900ms var(--ease-out) 500ms both;
  }
  .trend-chart.draw .trend-dot {
    animation: dot-pop 500ms var(--ease-spring) 1150ms both;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes dot-pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
}
.trend-dot {
  transform-box: fill-box;
  transform-origin: center;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--soft);
  font-size: 12px;
}
.chart-legend i {
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--wine);
}
.chart-legend span {
  margin-left: auto;
  color: var(--faint);
}

/* Growth level */
.journey {
  display: flex;
  flex-direction: column;
}
.level-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.plant {
  flex: none;
  width: 116px;
  height: 154px;
  overflow: visible;
}
.plant-soil {
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.plant-soil-dots {
  stroke: var(--petal);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.plant-stem {
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.plant-leaf {
  transform-box: fill-box;
}
.plant-leaf.l0,
.plant-leaf.l2 {
  transform-origin: 0% 100%;
}
.plant-leaf.l1,
.plant-leaf.l3 {
  transform-origin: 100% 100%;
}
.leaf-done {
  fill: var(--wine);
}
.leaf-outline {
  fill: var(--blush);
  stroke: var(--wine);
  stroke-width: 1.6;
}
.leaf-next {
  fill: none;
  stroke: var(--petal);
  stroke-width: 1.6;
  stroke-dasharray: 3 4;
  stroke-linecap: round;
}
@media (prefers-reduced-motion: no-preference) {
  .arriving .plant-stem {
    animation: g-rise 700ms var(--ease-out) 150ms both;
  }
  .arriving .plant-leaf {
    animation: g-unfurl 800ms var(--ease-spring) both;
  }
  .arriving .plant-leaf.l0 {
    animation-delay: 450ms;
  }
  .arriving .plant-leaf.l1 {
    animation-delay: 600ms;
  }
  .arriving .plant-leaf.l2 {
    animation-delay: 750ms;
  }
  .arriving .plant-leaf.l3 {
    animation-delay: 900ms;
  }
}
.level-number {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 600;
}
.level-line h3 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.05;
}
.level-line p {
  margin-top: 6px !important;
  color: var(--soft);
  font-size: 12.5px;
}
.xp-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 12px;
}
.xp-line b {
  color: var(--ink);
  font-weight: 600;
}
.client-studio progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: var(--blush);
  appearance: none;
}
.client-studio progress::-webkit-progress-bar {
  border-radius: 99px;
  background: var(--blush);
}
.client-studio progress::-webkit-progress-value {
  border-radius: 99px;
  background: linear-gradient(90deg, #8f2a42, var(--wine));
}
.client-studio progress::-moz-progress-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, #8f2a42, var(--wine));
}
.next-steps {
  display: grid;
  gap: 2px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.next-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 12.5px;
}
.next-steps li:last-child {
  border-bottom: 0;
}
.next-steps small {
  margin-left: auto;
  color: var(--faint);
  font-size: 11.5px;
}
.next-steps .now {
  color: var(--ink);
  font-weight: 600;
}
.next-steps .now small {
  color: var(--wine);
  font-weight: 600;
}
.step-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--wine);
}
.step-mark .glyph {
  stroke-width: 2.4;
}
.now .step-mark {
  background: var(--blush);
  box-shadow: inset 0 0 0 1.5px var(--wine);
}
.small-copy {
  margin-top: 12px !important;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
}
.journey .text-action {
  margin-top: auto;
}
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 14px;
  padding: 0;
  border: 0;
  color: var(--wine);
  background: none;
  font-size: 13px;
  font-weight: 600;
}
.text-action svg {
  transition: transform 260ms var(--ease-out);
}
.text-action:hover svg {
  transform: translateX(3px);
}

/* Where people find you */
.found-on {
  margin: 30px 0 18px;
}
.found-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.found-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}
.found-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.found-glyph {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(160deg, #7a1730, var(--wine-deep));
  box-shadow: 0 10px 20px -12px rgb(58 7 17 / 70%);
}
.found-glyph .glyph {
  --g-accent: #f4c9d1;
}
.found-title {
  color: var(--soft);
  font-size: 12.5px;
  font-weight: 600;
}
.found-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.found-value strong {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}
.found-value small {
  color: var(--faint);
  font-size: 12px;
}
.found-bar {
  grid-column: 1 / -1;
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--blush);
}
.found-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f2a42, var(--wine));
  transform-origin: left;
}
.found-bar .w45 {
  width: 45%;
}
.found-bar .w50 {
  width: 50%;
}
.found-bar .w60 {
  width: 60%;
}
.found-bar .w70 {
  width: 70%;
}
@media (prefers-reduced-motion: no-preference) {
  .arriving .found-bar i {
    animation: bar-grow 1100ms var(--ease-out) 400ms both;
  }
}
@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
}
.found-note {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
}

/* AI discovery list */
.rank-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.rank-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0 12px;
}
.rank-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.rank-name .glyph {
  padding: 6px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: var(--wine);
  background: var(--blush);
}
.rank-row strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}
.rank-row .found-bar {
  margin-top: 8px;
}
.found-bar .w30 {
  width: 30%;
}
.found-bar .w40 {
  width: 40%;
}

/* Score */
.score-panel {
  display: flex;
  flex-direction: column;
}
.score-dial {
  position: relative;
  width: min(100%, 260px);
  margin: 0 auto;
}
.gauge {
  display: block;
  width: 100%;
  height: auto;
}
.gauge line {
  stroke: var(--blush-strong);
  stroke-width: 5;
  stroke-linecap: round;
}
.gauge line.on {
  stroke: var(--wine);
}
@media (prefers-reduced-motion: no-preference) {
  .arriving .gauge line.on {
    animation: tick-on 400ms var(--ease-out) both;
  }
  .arriving .gauge .t1 {
    animation-delay: 30ms;
  }
  .arriving .gauge .t2 {
    animation-delay: 60ms;
  }
  .arriving .gauge .t3 {
    animation-delay: 90ms;
  }
  .arriving .gauge .t4 {
    animation-delay: 120ms;
  }
  .arriving .gauge .t5 {
    animation-delay: 150ms;
  }
  .arriving .gauge .t6 {
    animation-delay: 180ms;
  }
  .arriving .gauge .t7 {
    animation-delay: 210ms;
  }
  .arriving .gauge .t8 {
    animation-delay: 240ms;
  }
  .arriving .gauge .t9 {
    animation-delay: 270ms;
  }
  .arriving .gauge .t10 {
    animation-delay: 300ms;
  }
  .arriving .gauge .t11 {
    animation-delay: 330ms;
  }
  .arriving .gauge .t12 {
    animation-delay: 360ms;
  }
  .arriving .gauge .t13 {
    animation-delay: 390ms;
  }
  .arriving .gauge .t14 {
    animation-delay: 420ms;
  }
  .arriving .gauge .t15 {
    animation-delay: 450ms;
  }
  .arriving .gauge .t16 {
    animation-delay: 480ms;
  }
  .arriving .gauge .t17 {
    animation-delay: 510ms;
  }
}
@keyframes tick-on {
  from {
    stroke: var(--blush-strong);
  }
}
.score-value {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  justify-items: center;
}
.score-value strong {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 500;
  line-height: 0.9;
}
.score-value span {
  color: var(--faint);
  font-size: 12px;
}
.score-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--wine);
  background: var(--blush);
  font-size: 12px;
  font-weight: 600;
}
.score-panel .small-copy {
  text-align: center;
}
.score-panel .text-action {
  align-self: center;
  margin-top: auto;
  padding-top: 14px;
}

/* Tables */
.table-scroll {
  position: relative;
  overflow-x: auto;
  margin: 0 -8px;
}
.client-studio table {
  width: 100%;
  border-collapse: collapse;
}
.client-studio th {
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
}
.client-studio td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
  vertical-align: middle;
}
.client-studio tr:last-child td {
  border-bottom: 0;
}
.client-studio td small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 11.5px;
}
.client-studio td:first-child {
  min-width: 240px;
  color: var(--ink);
}
.client-studio tbody tr {
  transition: background 160ms;
}
.client-studio tbody tr:hover {
  background: #fcf9f9;
}
.article-link {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: none;
  font-weight: 600;
  text-align: left;
}
.article-link:hover {
  color: var(--wine);
}

/* Status */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--soft);
  background: #f4f0f1;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-published {
  color: #2f5e43;
  background: #eaf3ec;
}
.status-in-review {
  color: #7a5216;
  background: #fbf1df;
}
.status-planned {
  color: #5a4a78;
  background: #efebf6;
}

/* Buttons */
.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--soft);
  background: #fff;
  transition:
    color 160ms,
    border-color 160ms,
    background 160ms;
}
.icon-button:hover {
  border-color: var(--line-strong);
  color: var(--wine);
  background: var(--blush);
}
.client-studio .primary,
.client-studio .secondary,
#workspace-dialog .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 180ms,
    transform 200ms var(--ease-out),
    box-shadow 200ms;
}
.client-studio .primary,
#workspace-dialog .primary {
  border: 0;
  color: #fff;
  background: linear-gradient(160deg, #7a1730, var(--wine));
  box-shadow: 0 10px 22px -12px rgb(101 13 32 / 80%);
}
.client-studio .primary:hover,
#workspace-dialog .primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgb(101 13 32 / 85%);
}
.client-studio .secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #fff;
}
.client-studio .secondary:hover {
  border-color: var(--petal);
  color: var(--wine);
}

/* Websites */
.website-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.website-header h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}
.website-header p {
  margin-top: 2px !important;
  color: var(--faint);
  font-size: 12.5px;
}
.website-header > .status {
  margin-left: auto;
}
.site-symbol {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(160deg, #7a1730, var(--wine-deep));
}
.site-symbol .glyph {
  --g-accent: #f4c9d1;
}
.audit-grid {
  grid-template-columns: minmax(300px, 1fr) minmax(0, 1.6fr);
}
.audit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: none;
  text-align: left;
}
.audit-row > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 3px;
}
.audit-row strong {
  font-weight: 600;
}
.audit-row small {
  color: var(--faint);
  font-size: 12px;
}
.audit-row > svg {
  color: var(--faint);
  transition: transform 260ms var(--ease-out);
}
.audit-row:hover strong {
  color: var(--wine);
}
.audit-row:hover > svg {
  color: var(--wine);
  transform: translateX(3px);
}
.priority {
  min-width: 62px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--wine);
  background: var(--blush);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.activity {
  margin: 0;
  padding: 0;
  list-style: none;
}
.activity li {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 0 0 20px;
}
.activity li::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: -2px;
  left: 89px;
  width: 1px;
  background: var(--line-strong);
}
.activity li:last-child::before {
  display: none;
}
.activity li > div {
  position: relative;
  padding-left: 20px;
}
.activity li > div::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 4px var(--blush);
}
.activity li > span {
  color: var(--faint);
  font-size: 12px;
}
.activity strong {
  font-weight: 600;
}
.activity p {
  margin-top: 3px !important;
  color: var(--soft);
  font-size: 12.5px;
}

/* Filters */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  overflow-x: auto;
  border-radius: 999px;
  background: #f4eff0;
}
.segmented button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--soft);
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 200ms,
    color 200ms,
    box-shadow 200ms;
}
.segmented [aria-pressed='true'] {
  color: var(--wine);
  background: #fff;
  box-shadow: 0 4px 12px -6px rgb(58 7 17 / 35%);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 280px);
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--faint);
  background: #fff;
}
.search-field:focus-within {
  border-color: var(--petal);
  box-shadow: 0 0 0 4px var(--blush);
}
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  font-size: 13px;
}
.search-field input:focus-visible {
  outline: none;
}
.workspace-footnote {
  margin: 14px 4px 0 !important;
  color: var(--faint);
  font-size: 12px;
}
.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 20px;
  color: var(--soft);
  text-align: center;
}
.empty-state > svg {
  color: var(--wine);
}
.empty-state h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}
.empty-state p {
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.55;
}

/* Knowledge */
.page-actions {
  align-items: center;
}
.page-actions > p {
  color: var(--soft);
  font-size: 13px;
}
.knowledge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 18px;
}
.business-context dl,
.profile-detail {
  display: grid;
  gap: 0;
  margin: 0;
}
.business-context dl > div,
.profile-detail > div {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.business-context dt,
.profile-detail dt {
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
}
.business-context dd,
.profile-detail dd {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
}
.note-list {
  display: grid;
  gap: 10px;
}
.note-list > button {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  transition:
    border-color 180ms,
    box-shadow 220ms,
    transform 220ms var(--ease-out);
}
.note-list > button:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.note-list > button > svg:first-child {
  flex: none;
  padding: 7px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--wine);
  background: var(--blush);
}
.note-list > button > svg:last-child {
  align-self: center;
  color: var(--faint);
}
.note-list > button > span {
  display: grid;
  flex: 1;
  gap: 3px;
}
.note-list strong {
  font-weight: 600;
}
.note-list small {
  color: var(--faint);
  font-size: 11.5px;
}
.note-list p {
  margin-top: 4px !important;
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.5;
}
.note-list > button:hover strong {
  color: var(--wine);
}

/* Social */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.social-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
}
.social-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 12px;
}
.social-card-head > strong {
  font-size: 13px;
  font-weight: 600;
}
.social-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  aspect-ratio: 1;
  padding: 20px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  text-align: left;
  transition: transform 300ms var(--ease-out);
}
button.social-art:hover {
  transform: scale(1.015);
}
.social-art > strong {
  font-family: var(--serif);
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.05;
  white-space: pre-line;
}
.social-art > span {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.75;
}
.social-art.rose {
  color: var(--wine);
  background: linear-gradient(160deg, #fbf1f3, #f1dde1);
}
.social-art.cocoa {
  color: #fff;
  background:
    radial-gradient(80% 60% at 20% 10%, rgb(255 255 255 / 12%), transparent 60%),
    linear-gradient(160deg, #7a1730, var(--wine-night));
}
.social-art.paper {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.social-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 4px 4px;
}
.social-card-body > p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}
.social-card-body > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.social-card-body small {
  color: var(--faint);
  font-size: 12px;
}
.social-card-body .text-action {
  margin-top: auto;
  padding-top: 14px;
}

/* Calendar */
.calendar-plan {
  display: grid;
}
.calendar-event {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 14px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: none;
  text-align: left;
}
.calendar-event:last-child {
  border-bottom: 0;
}
.calendar-date {
  display: grid;
  flex: none;
  place-items: center;
  width: 58px;
  height: 62px;
  border-radius: 16px;
  color: var(--wine);
  background: var(--blush);
}
.calendar-date small {
  font-size: 11px;
  font-weight: 600;
}
.calendar-date b {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 0.9;
}
.calendar-event > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 3px;
}
.calendar-event strong {
  font-weight: 600;
}
.calendar-event > span > span {
  color: var(--faint);
  font-size: 12px;
}
.calendar-event > span > small {
  color: var(--wine);
  font-size: 11.5px;
  font-weight: 600;
}
.calendar-event > svg {
  color: var(--faint);
  transition: transform 260ms var(--ease-out);
}
.calendar-event:hover strong {
  color: var(--wine);
}
.calendar-event:hover > svg {
  color: var(--wine);
  transform: translateX(3px);
}

/* Settings */
.settings-panel {
  max-width: 760px;
}

/* Footer */
.studio-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 40px 30px;
  color: var(--faint);
  font-size: 12px;
}
.studio-footer span:last-child {
  margin-left: auto;
}
.footer-leaf {
  width: 16px;
  height: 16px;
  fill: var(--wine);
}

/* Dialog */
#workspace-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 26px;
  border: 0;
  border-radius: 24px;
  color: #1d1416;
  background: #fff;
  box-shadow: 0 40px 90px -30px rgb(42 5 13 / 55%);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
#workspace-dialog::backdrop {
  background: rgb(42 5 13 / 38%);
  backdrop-filter: blur(6px);
}
@media (prefers-reduced-motion: no-preference) {
  #workspace-dialog[open] {
    animation: dialog-in 360ms cubic-bezier(0.16, 1, 0.3, 1);
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.dialog-heading h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}
.dialog-heading button {
  flex: none;
}
#workspace-dialog .icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #efe8e9;
  border-radius: 50%;
  color: #6d5d61;
  background: #fff;
}
#workspace-dialog .demo-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  color: #650d20;
  background: #f8eef0;
  font-size: 11px;
  font-weight: 600;
}
#workspace-dialog .status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
#workspace-dialog .status-published {
  color: #2f5e43;
  background: #eaf3ec;
}
#workspace-dialog .status-in-review {
  color: #7a5216;
  background: #fbf1df;
}
#workspace-dialog .status-planned {
  color: #5a4a78;
  background: #efebf6;
}
#workspace-dialog .small-copy {
  color: #76666a;
  font-size: 12px;
}
.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #76666a;
  font-size: 12px;
}
.article-body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.85;
}
.article-source-note {
  padding: 12px 14px;
  border-radius: 12px;
  color: #6d5d61;
  background: #faf6f7;
  font-size: 12px;
}
#workspace-dialog .social-art {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1.4;
  margin-bottom: 14px;
  padding: 26px;
  border-radius: 18px;
}
#workspace-dialog .social-art strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.05;
  white-space: pre-line;
}
#workspace-dialog .social-art.rose {
  color: #650d20;
  background: linear-gradient(160deg, #fbf1f3, #f1dde1);
}
#workspace-dialog .social-art.cocoa {
  color: #fff;
  background: linear-gradient(160deg, #7a1730, #2a050d);
}
#workspace-dialog .social-art.paper {
  color: #1d1416;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e3d7d9;
}
#workspace-dialog > p {
  margin: 0 0 12px;
}
#workspace-dialog form {
  display: grid;
  gap: 14px;
}
.milestones {
  display: grid;
  gap: 0;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.milestones li {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 18px;
}
.milestones li::before {
  content: '';
  position: absolute;
  top: 36px;
  bottom: 0;
  left: 17px;
  width: 2px;
  border-radius: 2px;
  background: #f1dfe2;
}
.milestones li:last-child::before {
  display: none;
}
.milestones li > b {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: #650d20;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
}
.milestones li:nth-child(3) > b {
  color: #650d20;
  background: #f8eef0;
  box-shadow: inset 0 0 0 1.5px #650d20;
}
.milestones li:nth-child(4) > b {
  color: #76666a;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #dcb4bb;
}
.milestones strong {
  font-weight: 600;
}
.milestones p {
  margin: 2px 0 !important;
  color: #6d5d61;
  font-size: 13px;
}
.milestones small {
  color: #650d20;
  font-size: 12px;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#mobile-menu,
.rail-close,
.nav-scrim {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .studio-sidebar {
    width: 228px;
  }
  .studio-page {
    margin-left: 260px;
  }
  .found-value strong {
    font-size: 30px;
  }
}
@media (max-width: 1080px) {
  .dashboard-grid,
  .audit-grid,
  .knowledge-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .found-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .trend-chart text {
    font-size: 18px;
  }
  .studio-sidebar {
    inset: 10px auto 10px 10px;
    width: 260px;
    max-height: calc(100dvh - 20px);
    transform: translateX(calc(-100% - 20px));
    transition: transform 360ms var(--ease-out);
  }
  .nav-open .studio-sidebar {
    transform: none;
  }
  .rail-toggle {
    display: none;
  }
  .rail-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 50%;
    color: #fff;
    background: rgb(255 255 255 / 8%);
  }
  .rail-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    background: rgb(42 5 13 / 32%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms var(--ease-out);
  }
  .nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .studio-page,
  .rail-folded .studio-page {
    margin-left: 0;
  }
  .rail-folded .studio-sidebar {
    width: 260px;
  }
  #mobile-menu {
    display: grid;
  }
  .studio-topbar {
    min-height: 64px;
    padding: 0 16px;
    gap: 10px;
  }
  .preview-long,
  .breadcrumb-separator,
  .breadcrumb-separator + strong {
    display: none;
  }
  .studio-main {
    padding: 0 16px 28px;
  }
  .studio-footer {
    padding: 14px 16px 24px;
  }
  .hello {
    align-items: flex-start;
    gap: 16px;
  }
  .hello-leaf {
    width: 60px;
    height: 60px;
    border-radius: 20px;
  }
  .brand-leaf {
    width: 32px;
    height: 32px;
  }
  .hello h1,
  .page-heading h1 {
    font-size: 34px;
  }
  .metric-strip {
    gap: 10px;
  }
  .surface {
    padding: 18px;
    border-radius: 20px;
  }
  .social-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-heading,
  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .level-line {
    gap: 12px;
  }
  .plant {
    width: 84px;
    height: 112px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  #workspace-dialog::backdrop {
    backdrop-filter: none;
    background: rgb(42 5 13 / 55%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .client-studio,
  .client-studio * {
    scroll-behavior: auto;
    transition-duration: 0ms !important;
  }
}

/* Milestones dialog: the same plant as the overview card. */
.dialog-plant {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 4px;
}
.dialog-plant .plant {
  flex: none;
  width: 84px;
  height: 112px;
  overflow: visible;
}
.dialog-plant p {
  margin: 10px 0 0;
}
/* Analytics: a query's average position as a small wine chip. */
.position {
  display: inline-block;
  min-width: 44px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--wine);
  background: var(--blush);
  font-weight: 600;
  text-align: center;
}

/* ---------- Metric cards: the number leads, the drawing explains it ----------
   Each card's illustration acts out its metric once on arrival (cards in
   reading order, 90 ms apart) and does one small act on hover. Everything
   lands decelerating; reduced motion shows the finished drawing. */
.metric {
  --art-ink: var(--wine);
  --art-soft: var(--blush);
  --art-line: #f1e9ea;
  --art-paper: #fff;
  --art-text: #e2d5d8;
  --d: 0ms;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 6px;
  min-height: 248px;
  padding: 18px 20px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition:
    transform 320ms var(--ease-out),
    box-shadow 320ms var(--ease-out);
}
.metric:nth-child(2) {
  --d: 90ms;
}
.metric:nth-child(3) {
  --d: 180ms;
}
.metric:nth-child(4) {
  --d: 270ms;
}
.metric:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}
.metric.is-hero {
  --art-ink: #fff;
  --art-soft: rgb(255 255 255 / 16%);
  --art-line: rgb(255 255 255 / 9%);
  --art-paper: rgb(255 255 255 / 10%);
  --art-text: rgb(255 255 255 / 30%);
  border-color: transparent;
  color: #fff;
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(255 255 255 / 12%), transparent 55%),
    linear-gradient(160deg, #7a1730, #4b0918 60%, #2f050e);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 14%),
    0 24px 48px -26px rgb(58 7 17 / 75%);
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
}
.is-hero .metric-top {
  color: rgb(255 255 255 / 80%);
}
.metric-top > .glyph {
  opacity: 0.45;
  transform: rotate(-45deg);
  transition:
    opacity 200ms,
    transform 320ms var(--ease-out);
}
.metric:hover .metric-top > .glyph {
  opacity: 1;
  transform: rotate(-45deg) translateX(2px);
}
.metric-stage {
  display: grid;
  place-items: center end;
  min-height: 0;
}
.metric-art {
  display: block;
  width: min(100%, 210px);
  height: auto;
  overflow: visible;
}
.metric-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.metric-value strong {
  font-family: var(--serif);
  font-size: clamp(44px, 3.6vw, 60px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.metric .delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  color: var(--wine);
  background: var(--blush);
  font-size: 12px;
  font-weight: 600;
}
.metric .delta .glyph {
  transform: rotate(-45deg);
}
.is-hero .delta {
  color: var(--wine);
  background: #fff;
}
.metric-note {
  color: var(--faint);
  font-size: 12px;
}
.is-hero .metric-note {
  color: rgb(255 255 255 / 70%);
}

/* Art: shared paint. */
.metric-art .art-text {
  fill: var(--art-text);
}
.metric-art .art-text.dim {
  opacity: 0.6;
}

/* Clicks: search results, yours gets clicked. */
.art-row rect:first-child {
  fill: var(--art-line);
}
.art-row circle {
  fill: var(--art-text);
}
.art-row.is-yours rect:first-child {
  fill: var(--art-paper);
  stroke: var(--art-ink);
  stroke-width: 1.4;
}
.art-row.is-yours circle,
.art-row.is-yours .art-text:not(.dim) {
  fill: var(--art-ink);
}
.art-row {
  transform-box: fill-box;
}
.art-cursor path {
  fill: var(--art-ink);
  stroke: var(--art-paper);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.is-hero .art-cursor path {
  stroke: #4b0918;
}
.art-cursor {
  transform-box: fill-box;
  transform-origin: 0 0;
}
.art-ripple {
  fill: none;
  stroke: var(--art-ink);
  stroke-width: 1.4;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

/* Impressions: a field of views, the new ones lit last. */
.art-seen circle {
  transform-box: fill-box;
  transform-origin: center;
}
.art-seen .unseen {
  fill: var(--art-line);
}
.art-seen .seen {
  fill: var(--art-ink);
  opacity: 0.32;
}
.art-seen .seen.fresh {
  opacity: 1;
}

/* AI mentions: an answer that names you. */
.art-bubble {
  fill: var(--art-paper);
  stroke: var(--art-line);
  stroke-width: 1.4;
}
.metric:not(.is-hero) .art-bubble {
  fill: #fdf8f9;
  stroke: #eadfe1;
}
.art-line {
  fill: var(--art-text);
  transform-box: fill-box;
  transform-origin: 0 50%;
}
.art-typing {
  fill: var(--art-text);
  opacity: 0;
}
.art-typing circle {
  transform-box: fill-box;
  transform-origin: center;
}
.art-name rect {
  fill: var(--art-ink);
}
.art-name text {
  fill: #fff;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 8.6px;
  font-weight: 600;
}
.is-hero .art-name text {
  fill: var(--wine);
}
.art-name {
  transform-box: fill-box;
  transform-origin: center;
}

/* Articles: pages dealt onto the desk, stamped with the leaf. */
.art-sheet {
  transform-box: view-box;
  transform-origin: 81px 84px;
  transition: transform 520ms var(--ease-out);
}
.art-sheet rect:first-child {
  fill: var(--art-paper);
  stroke: #e7dcde;
  stroke-width: 1.2;
}
.art-sheet.is-done rect:first-child {
  filter: drop-shadow(0 6px 8px rgb(58 7 17 / 12%));
}
.art-sheet.is-planned rect:first-child {
  fill: none;
  stroke: var(--petal);
  stroke-dasharray: 3 4;
}
.art-sheet.is-planned .art-text {
  display: none;
}
.art-seal {
  fill: var(--art-ink);
  transform-box: fill-box;
  transform-origin: 0 100%;
}
.art-sheet.s0 {
  transform: translate(-34px, 6px) rotate(-12deg);
}
.art-sheet.s1 {
  transform: translate(-16px, 3px) rotate(-5deg);
}
.art-sheet.s2 {
  transform: translate(6px, 1px) rotate(3deg);
}
.art-sheet.s3 {
  transform: translate(26px, 3px) rotate(9deg);
}
.metric:hover .art-sheet.s0 {
  transform: translate(-44px, 8px) rotate(-17deg);
}
.metric:hover .art-sheet.s1 {
  transform: translate(-22px, 2px) rotate(-8deg);
}
.metric:hover .art-sheet.s2 {
  transform: translate(8px, -2px) rotate(4deg);
}
.metric:hover .art-sheet.s3 {
  transform: translate(36px, 1px) rotate(13deg);
}

@media (prefers-reduced-motion: no-preference) {
  /* Clicks: rows settle in, the cursor arrives oversize, parks, presses;
     the ripple and your row answer a beat later. */
  .arriving .art-row {
    animation: art-slide 460ms var(--ease-out) calc(var(--d) + 140ms) both;
  }
  .arriving .art-row.r1 {
    animation-delay: calc(var(--d) + 210ms);
  }
  .arriving .art-row.r2 {
    animation-delay: calc(var(--d) + 280ms);
  }
  .arriving .art-cursor {
    animation:
      art-cursor-in 560ms var(--ease-out) calc(var(--d) + 420ms) both,
      art-press 200ms var(--ease-in-out) calc(var(--d) + 1100ms);
  }
  .arriving .art-ripple {
    animation: art-ripple 620ms var(--ease-out) calc(var(--d) + 1180ms);
  }
  .arriving .art-row.is-yours rect:first-child {
    animation: art-answer 700ms var(--ease-out) calc(var(--d) + 1190ms);
  }
  .metric:hover .art-cursor {
    animation: art-press 220ms var(--ease-in-out) 60ms;
  }
  .metric:hover .art-ripple {
    animation: art-ripple 620ms var(--ease-out) 140ms;
  }

  /* Impressions: views light column by column; the new ones arrive last. */
  .arriving .art-seen .seen:not(.fresh) {
    animation: art-dot 380ms var(--ease-out) calc(var(--d) + 160ms + var(--col) * 45ms) both;
  }
  .arriving .art-seen .fresh {
    animation: art-dot-new 460ms var(--ease-out) calc(var(--d) + 760ms + var(--col) * 60ms) both;
  }
  .metric:hover .art-seen .seen {
    animation: art-wave 620ms var(--ease-in-out) calc(var(--col) * 35ms);
  }

  /* AI mentions: the answer types, then names you. */
  .arriving .art-typing {
    animation: art-typing-show 900ms linear calc(var(--d) + 120ms);
  }
  .arriving .art-typing circle {
    animation: art-bob 420ms var(--ease-in-out) calc(var(--d) + 160ms) 2;
  }
  .arriving .art-typing .t2 {
    animation-delay: calc(var(--d) + 260ms);
  }
  .arriving .art-typing .t3 {
    animation-delay: calc(var(--d) + 360ms);
  }
  .arriving .art-line.l1 {
    animation: art-write 380ms var(--ease-out) calc(var(--d) + 1000ms) both;
  }
  .arriving .art-line.l2 {
    animation: art-write 200ms var(--ease-out) calc(var(--d) + 1140ms) both;
  }
  .arriving .art-name {
    animation: art-name 480ms var(--ease-out) calc(var(--d) + 1240ms) both;
  }
  .arriving .art-line.l3 {
    animation: art-write 340ms var(--ease-out) calc(var(--d) + 1400ms) both;
  }
  .metric:hover .art-name {
    animation: art-name 460ms var(--ease-out);
  }

  /* Articles: planned outlines first, then each page is dealt and stamped. */
  .arriving .art-sheet.is-planned {
    animation: art-slide 420ms var(--ease-out) calc(var(--d) + 120ms) both;
  }
  .arriving .art-sheet.is-done {
    animation: art-deal 560ms var(--ease-out) calc(var(--d) + 320ms) both;
  }
  .arriving .art-sheet.is-done.s3 {
    animation-delay: calc(var(--d) + 460ms);
  }
  .arriving .art-seal {
    animation: art-stamp 380ms var(--ease-out) calc(var(--d) + 980ms) both;
  }
  .arriving .art-sheet.s3 .art-seal {
    animation-delay: calc(var(--d) + 1120ms);
  }
}
.art-seen .c0 {
  --col: 0;
}
.art-seen .c1 {
  --col: 1;
}
.art-seen .c2 {
  --col: 2;
}
.art-seen .c3 {
  --col: 3;
}
.art-seen .c4 {
  --col: 4;
}
.art-seen .c5 {
  --col: 5;
}
.art-seen .c6 {
  --col: 6;
}
.art-seen .c7 {
  --col: 7;
}
.art-seen .c8 {
  --col: 8;
}
.art-seen .c9 {
  --col: 9;
}

@keyframes art-slide {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
}
@keyframes art-cursor-in {
  from {
    opacity: 0;
    transform: translate(34px, 30px) scale(1.7);
  }
}
@keyframes art-press {
  45% {
    transform: scale(0.84);
  }
}
@keyframes art-ripple {
  from {
    opacity: 0.9;
    transform: scale(0.3);
  }
  to {
    opacity: 0;
    transform: scale(2.2);
  }
}
@keyframes art-answer {
  from {
    fill: var(--art-soft);
  }
}
@keyframes art-dot {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
}
@keyframes art-dot-new {
  from {
    opacity: 0;
    transform: scale(2.1);
  }
}
@keyframes art-wave {
  40% {
    transform: translateY(-3px) scale(1.15);
  }
}
@keyframes art-typing-show {
  0%,
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes art-bob {
  50% {
    transform: translateY(-3px);
  }
}
@keyframes art-write {
  from {
    transform: scaleX(0);
  }
}
@keyframes art-name {
  from {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes art-deal {
  from {
    opacity: 0;
    transform: translate(70px, -10px) rotate(24deg);
  }
}
@keyframes art-stamp {
  from {
    opacity: 0;
    transform: scale(1.9);
  }
}

@media (max-width: 760px) {
  .metric {
    min-height: 0;
    padding: 14px;
    border-radius: 18px;
  }
  .metric-value strong {
    font-size: 36px;
  }
  .metric-note {
    display: none;
  }
}

/* ---------- Website tiles (replace the native dropdown) ---------- */
.site-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.site-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 40px 12px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: var(--ink);
  background: rgb(255 255 255 / 55%);
  text-align: left;
  transition:
    border-color 220ms,
    background 220ms,
    box-shadow 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}
.site-tile:hover {
  border-color: var(--petal);
  background: #fff;
  transform: translateY(-1px);
}
.site-tile[aria-pressed='true'] {
  border-color: var(--wine);
  background: #fff;
  box-shadow:
    0 0 0 3px var(--blush),
    0 14px 28px -18px rgb(58 7 17 / 45%);
}
.site-tile-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--wine);
  background: var(--blush);
  transition:
    background 220ms,
    color 220ms;
}
.site-tile[aria-pressed='true'] .site-tile-mark {
  color: #fff;
  background: linear-gradient(160deg, #7a1730, var(--wine-deep));
  --g-accent: #ffd6de;
}
.site-tile-text {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.site-tile-text strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-tile-text small {
  color: var(--faint);
  font-size: 12px;
}
.site-tile-check {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--wine);
  opacity: 0;
  transform: translateY(-50%) scale(0.6);
  transition:
    opacity 160ms,
    transform 320ms var(--ease-out);
}
.site-tile-check .glyph {
  stroke-width: 2.4;
}
.site-tile[aria-pressed='true'] .site-tile-check {
  opacity: 1;
  transform: translateY(-50%);
}
.site-tile.is-add {
  justify-content: center;
  gap: 8px;
  padding-right: 12px;
  border-style: dashed;
  color: var(--wine);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.site-tile.is-add:hover {
  background: var(--blush);
}
@media (prefers-reduced-motion: no-preference) {
  /* The chosen website's details settle in from the side it was picked on. */
  .website-header.is-switching > * {
    animation: site-in 420ms var(--ease-out) both;
  }
  .website-header.is-switching > :nth-child(2) {
    animation-delay: 50ms;
  }
  .site-tile[aria-pressed='true'] .site-tile-mark .g-leaf {
    animation: g-unfurl 640ms var(--ease-spring) both;
  }
}
@keyframes site-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
}

/* ---------- Period toggle (replaces the period dropdown) ---------- */
.segmented.period {
  flex: none;
}
.segmented.period button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}
@media (max-width: 760px) {
  .site-picker {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

/* The delivery desk uses the same paper and type as the rest of the workspace. */
.client-studio .growth-numeral {
  font: 500 38px/1.15 var(--serif);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin: 12px 0 2px;
}
.growth-level progress {
  display: block;
  width: 100%;
  margin: 18px 0;
}
.growth-current h3 {
  font: 600 28px/1.18 var(--serif);
  margin: 12px 0 6px;
  overflow-wrap: anywhere;
}
.growth-current .primary {
  margin-top: 14px;
}
.growth-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: 14px 0 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
}
.growth-counts dt,
.growth-list small {
  font-size: 12px;
  line-height: 1.5;
  color: var(--soft);
}
.growth-counts dd {
  font: 600 25px/1.25 var(--serif);
  margin: 2px 0;
  font-variant-numeric: tabular-nums;
}
.growth-details {
  margin-top: 16px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.growth-details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  min-height: 28px;
}
.growth-details p,
.growth-details li {
  margin: 8px 0;
  line-height: 1.7;
  max-width: 68ch;
}
.growth-details li small {
  display: block;
  color: var(--soft);
}
.growth-list {
  padding: 0;
  list-style: none;
  margin: 10px 0 0;
}
.growth-list li {
  border-top: 1px solid var(--line);
}
.growth-list li > div,
.growth-list button {
  padding: 14px 2px;
}
.growth-list button {
  display: flex;
  width: 100%;
  gap: 14px;
  align-items: center;
  border: 0;
  border-radius: 0;
  text-align: left;
  color: var(--ink);
  background: transparent;
}
.growth-list button:hover {
  background: var(--blush);
}
.growth-list button > span:first-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.growth-list small {
  display: block;
  margin-top: 3px;
  font-weight: 400;
}
.growth-list a,
#reading-article a {
  color: var(--wine);
}
.client-studio .growth-status {
  font-size: 11px;
  line-height: 1.4;
  display: inline-block;
  width: fit-content;
  border-radius: 6px;
  padding: 4px 7px;
  background: var(--blush);
  color: var(--wine);
  font-weight: 600;
}
.client-studio .growth-status[data-stage='published'] {
  background: #eaf3ec;
  color: #2f5e43;
}
.growth-copy {
  white-space: pre-wrap;
  line-height: 1.8;
  overflow-wrap: anywhere;
  margin: 20px 0;
  max-width: 70ch;
}
.growth-traffic .growth-details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.growth-empty {
  color: var(--soft);
  max-width: 65ch;
  margin-top: 12px;
}
.growth-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
}
.growth-filters label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
.growth-filters input,
.growth-filters select {
  min-height: 40px;
  max-width: 100%;
  padding: 7px 10px;
}
.growth-current,
.growth-traffic,
.growth-level {
  min-width: 0;
}
.site-audit-preview[open] > summary {
  margin-bottom: 20px;
}
@media (max-width: 760px) {
  .growth-current h3 {
    font-size: 24px;
  }
  .growth-counts {
    gap: 16px;
  }
  .growth-list button {
    gap: 8px;
    flex-wrap: wrap;
  }
}

.publication-panel {
  max-width: 75rem;
}
.catalog-search {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.catalog-search label {
  margin: 0;
  display: grid;
  gap: 0.4rem;
  flex: 1 1 12rem;
  font-size: 0.88rem;
}
.catalog-search input,
.catalog-search select {
  width: 100%;
  min-height: 2.75rem;
}
.catalog-result-count {
  margin: 1.2rem 0 0.4rem;
  font-size: 0.85rem;
  color: var(--studio-soft, #6f6062);
}
.publication-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.7rem;
}
.publication-list li {
  border-top: 1px solid var(--studio-line, #e7dedd);
}
.publication-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 0.25rem;
  text-decoration: none;
  color: inherit;
}
.publication-list a:hover strong,
.publication-list a:focus-visible strong {
  color: #650d20;
  text-decoration: underline;
}
.publication-list a:focus-visible {
  outline: 2px solid #650d20;
  outline-offset: 2px;
}
.publication-list strong,
.publication-list small {
  display: block;
  overflow-wrap: anywhere;
}
.publication-list small {
  margin-top: 0.3rem;
  color: var(--studio-soft, #6f6062);
}
.catalog-overview a {
  color: #650d20;
}

.web-changes {
  margin-bottom: 1.4rem;
}
.web-change-actions {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.web-change-leaf {
  flex: 0 0 2.4rem;
  color: #650d20;
}
.web-change-leaf svg {
  display: block;
  width: 100%;
  height: 2.4rem;
}
.web-change-bubble {
  border-radius: 0 1rem 1rem;
  background: #f7f0f1;
  padding: 1rem 1.3rem;
}
.web-change-bubble p {
  margin: 0.35rem 0 1rem;
}
.web-change-row {
  border-top: 1px solid #e6dedd;
}
.web-change-row summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 1rem 0;
  cursor: pointer;
}
.web-change-row summary > span:first-child {
  min-width: 0;
}
.web-change-row summary strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.web-change-row summary small {
  display: block;
  margin-top: 0.3rem;
}
.web-change-detail,
.web-change-preview,
#website-file-summary {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.web-change-detail {
  padding-bottom: 1rem;
}
.web-changes [hidden],
.web-changes[hidden],
#website-change-form[hidden],
#website-confirm[hidden] {
  display: none;
}
