/* Reshape90 Progress Hub — isolated styles */
:root {
  --r90p-accent: #ff4d8b;
  --r90p-accent-strong: #ec2973;
  --r90p-violet: #a855f7;
  --r90p-success: #0f9f6e;
  --r90p-danger: #dc345f;
}

body.r90p-is-open {
  overflow: hidden !important;
}

.r90p-launch-card,
.r90p-overlay,
.r90p-overlay *,
.r90p-overlay *::before,
.r90p-overlay *::after {
  box-sizing: border-box;
}

.r90p-launch-card {
  --r90p-launch-text: #27131c;
  --r90p-launch-muted: #785967;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: calc(100% - 48px);
  margin: 18px 24px 0;
  padding: 17px 18px;
  overflow: hidden;
  color: var(--r90p-launch-text);
  text-align: left;
  font: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 248, 0.88)),
    linear-gradient(90deg, rgba(255, 77, 139, 0.12), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(255, 77, 139, 0.24);
  border-radius: 18px;
  box-shadow:
    0 14px 38px rgba(109, 31, 62, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.r90p-launch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 77, 139, 0.44);
  box-shadow:
    0 19px 46px rgba(109, 31, 62, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

.r90p-launch-card:active {
  transform: translateY(0);
}

.r90p-launch-card:focus-visible {
  outline: 3px solid rgba(255, 77, 139, 0.34);
  outline-offset: 3px;
}

.r90p-launch-card__glow {
  position: absolute;
  z-index: -1;
  top: -58px;
  right: 8%;
  width: 180px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 77, 139, 0.26), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}

.r90p-launch-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: linear-gradient(135deg, #ff5f98, #ef3f87 55%, #a855f7);
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(255, 77, 139, 0.30);
}

.r90p-launch-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.r90p-launch-card__copy {
  min-width: 0;
}

.r90p-launch-card__copy > span {
  display: block;
  margin-bottom: 3px;
  color: var(--r90p-accent-strong);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.r90p-launch-card__copy > strong {
  display: block;
  overflow: hidden;
  color: var(--r90p-launch-text);
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r90p-launch-card__copy > small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--r90p-launch-muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r90p-launch-card__action {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: var(--r90p-accent-strong);
  font-size: 11px;
  font-weight: 750;
  background: rgba(255, 77, 139, 0.09);
  border-radius: 999px;
}

.r90p-launch-card__action b {
  font-size: 15px;
  transition: transform 180ms ease;
}

.r90p-launch-card:hover .r90p-launch-card__action b {
  transform: translateX(2px);
}

html[data-theme="dark"] .r90p-launch-card {
  --r90p-launch-text: #fff4f8;
  --r90p-launch-muted: #c8a9b7;
  background:
    linear-gradient(120deg, rgba(43, 25, 33, 0.96), rgba(35, 20, 29, 0.92)),
    linear-gradient(90deg, rgba(255, 77, 139, 0.13), rgba(168, 85, 247, 0.10));
  border-color: rgba(255, 113, 165, 0.28);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.r90p-overlay {
  --r90p-bg: #f8f6f7;
  --r90p-bg-elevated: #ffffff;
  --r90p-bg-soft: #fbf8fa;
  --r90p-bg-muted: #f2edf0;
  --r90p-text: #251820;
  --r90p-text-soft: #725f69;
  --r90p-text-subtle: #97838d;
  --r90p-border: rgba(76, 49, 62, 0.12);
  --r90p-border-strong: rgba(76, 49, 62, 0.20);
  --r90p-grid: rgba(76, 49, 62, 0.09);
  --r90p-shadow: 0 18px 60px rgba(65, 28, 45, 0.09);
  --r90p-shadow-soft: 0 10px 30px rgba(65, 28, 45, 0.07);
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  overflow: auto;
  color: var(--r90p-text);
  color-scheme: light;
  font-family: "Geist", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 7% -10%, rgba(255, 77, 139, 0.11), transparent 27%),
    radial-gradient(circle at 95% 8%, rgba(168, 85, 247, 0.08), transparent 24%),
    var(--r90p-bg);
  overscroll-behavior: contain;
}

html[data-theme="dark"] .r90p-overlay {
  --r90p-bg: #100c0e;
  --r90p-bg-elevated: #1a1417;
  --r90p-bg-soft: #20181c;
  --r90p-bg-muted: #281e23;
  --r90p-text: #fff5f8;
  --r90p-text-soft: #c7b2bc;
  --r90p-text-subtle: #927d87;
  --r90p-border: rgba(255, 229, 239, 0.10);
  --r90p-border-strong: rgba(255, 229, 239, 0.18);
  --r90p-grid: rgba(255, 229, 239, 0.08);
  --r90p-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
  --r90p-shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.24);
  color-scheme: dark;
  background:
    radial-gradient(circle at 7% -10%, rgba(255, 77, 139, 0.14), transparent 29%),
    radial-gradient(circle at 95% 8%, rgba(168, 85, 247, 0.11), transparent 26%),
    var(--r90p-bg);
}

.r90p-overlay.is-loading {
  display: grid;
  place-items: center;
}

.r90p-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(340px, calc(100% - 40px));
  padding: 34px;
  text-align: center;
  background: color-mix(in srgb, var(--r90p-bg-elevated) 92%, transparent);
  border: 1px solid var(--r90p-border);
  border-radius: 26px;
  box-shadow: var(--r90p-shadow);
  backdrop-filter: blur(18px);
}

.r90p-loading strong {
  margin-top: 18px;
  font-size: 17px;
}

.r90p-loading small {
  margin-top: 6px;
  color: var(--r90p-text-soft);
  font-size: 12px;
}

.r90p-loading__mark,
.r90p-brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
}

.r90p-loading__mark i,
.r90p-brand-mark i {
  display: block;
  width: 5px;
  background: linear-gradient(to top, var(--r90p-accent), #c084fc);
  border-radius: 999px;
}

.r90p-loading__mark i:nth-child(1),
.r90p-brand-mark i:nth-child(1) {
  height: 11px;
}

.r90p-loading__mark i:nth-child(2),
.r90p-brand-mark i:nth-child(2) {
  height: 19px;
}

.r90p-loading__mark i:nth-child(3),
.r90p-brand-mark i:nth-child(3) {
  height: 29px;
}

.r90p-loading__mark i {
  width: 8px;
  animation: r90p-pulse-bars 900ms ease-in-out infinite alternate;
}

.r90p-loading__mark i:nth-child(2) {
  animation-delay: 120ms;
}

.r90p-loading__mark i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes r90p-pulse-bars {
  from { transform: scaleY(0.70); opacity: 0.56; }
  to { transform: scaleY(1); opacity: 1; }
}

.r90p-shell {
  min-height: 100%;
}

.r90p-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: max(12px, env(safe-area-inset-top)) 28px 12px;
  background: color-mix(in srgb, var(--r90p-bg-elevated) 82%, transparent);
  border-bottom: 1px solid var(--r90p-border);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--r90p-text) 4%, transparent);
  backdrop-filter: blur(22px) saturate(1.35);
}

.r90p-brand,
.r90p-client-title {
  display: flex;
  align-items: center;
  min-width: 0;
}

.r90p-brand {
  gap: 12px;
}

.r90p-brand-mark {
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 7px;
  background: linear-gradient(145deg, rgba(255, 77, 139, 0.14), rgba(168, 85, 247, 0.10));
  border: 1px solid rgba(255, 77, 139, 0.18);
  border-radius: 13px;
}

.r90p-brand-mark i {
  width: 4px;
}

.r90p-brand-mark i:nth-child(1) {
  height: 8px;
}

.r90p-brand-mark i:nth-child(2) {
  height: 14px;
}

.r90p-brand-mark i:nth-child(3) {
  height: 21px;
}

.r90p-brand > div,
.r90p-client-title > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.r90p-brand strong {
  font-size: 15px;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.r90p-brand small,
.r90p-client-title small {
  color: var(--r90p-text-subtle);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.r90p-client-title {
  justify-self: center;
  gap: 10px;
  max-width: min(460px, 40vw);
  padding: 6px 14px 6px 7px;
  background: color-mix(in srgb, var(--r90p-bg-soft) 78%, transparent);
  border: 1px solid var(--r90p-border);
  border-radius: 999px;
}

.r90p-client-title strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r90p-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--r90p-accent), #c45df1);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(255, 77, 139, 0.28);
}

.r90p-close {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--r90p-text-soft);
  font: inherit;
  font-size: 11px;
  font-weight: 680;
  background: var(--r90p-bg-soft);
  border: 1px solid var(--r90p-border);
  border-radius: 11px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.r90p-close:hover {
  color: var(--r90p-text);
  background: var(--r90p-bg-muted);
  border-color: var(--r90p-border-strong);
}

.r90p-close svg,
.r90p-icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.r90p-main {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 70px;
}

.r90p-mode-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding: 11px 14px;
  color: var(--r90p-text-soft);
  background: color-mix(in srgb, var(--r90p-bg-elevated) 86%, transparent);
  border: 1px solid var(--r90p-border);
  border-radius: 13px;
}

.r90p-mode-banner.is-preview {
  color: #8a3b62;
  background: linear-gradient(90deg, rgba(255, 77, 139, 0.09), rgba(168, 85, 247, 0.06));
  border-color: rgba(255, 77, 139, 0.20);
}

html[data-theme="dark"] .r90p-mode-banner.is-preview {
  color: #ffc3d9;
}

.r90p-mode-banner > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--r90p-accent);
  background: rgba(255, 77, 139, 0.10);
  border-radius: 50%;
}

.r90p-mode-banner > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.r90p-mode-banner strong {
  color: inherit;
  font-size: 11px;
}

.r90p-mode-banner small {
  color: inherit;
  font-size: 10px;
  opacity: 0.84;
}

.r90p-profile {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  align-items: center;
  gap: 34px;
  min-height: 178px;
  padding: 30px 34px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(62, 18, 38, 0.98), rgba(91, 25, 57, 0.96) 48%, rgba(91, 37, 107, 0.94)),
    #401529;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 26px;
  box-shadow:
    0 25px 70px rgba(76, 18, 45, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.r90p-profile::before,
.r90p-profile::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
  filter: blur(6px);
  pointer-events: none;
}

.r90p-profile::before {
  top: -130px;
  right: 21%;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, rgba(255, 77, 139, 0.36), transparent 66%);
}

.r90p-profile::after {
  right: -80px;
  bottom: -180px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.30), transparent 66%);
}

.r90p-profile__copy,
.r90p-profile__journey {
  min-width: 0;
}

.r90p-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--r90p-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.r90p-profile .r90p-eyebrow {
  color: #ff9fc2;
}

.r90p-profile h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: "Bricolage Grotesque", "Geist", sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.r90p-profile__copy p {
  margin: 12px 0 0;
  color: rgba(255, 239, 245, 0.68);
  font-size: 11px;
}

.r90p-profile__journey {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 19px;
  backdrop-filter: blur(12px);
}

.r90p-profile__numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.r90p-profile__numbers > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.r90p-profile__numbers > span:nth-child(2) {
  align-items: center;
  text-align: center;
}

.r90p-profile__numbers > span:nth-child(3) {
  align-items: flex-end;
  text-align: right;
}

.r90p-profile__numbers small {
  color: rgba(255, 239, 245, 0.55);
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.r90p-profile__numbers strong {
  margin-top: 3px;
  color: #fff;
  font-size: 17px;
  font-weight: 760;
}

.r90p-profile__numbers .is-current strong {
  color: #ffacc9;
}

.r90p-progress-track {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
}

.r90p-progress-track span {
  display: block;
  height: 100%;
  min-width: 4px;
  background: linear-gradient(90deg, #ff719f, #ff4d8b 62%, #c084fc);
  border-radius: inherit;
  box-shadow: 0 0 17px rgba(255, 77, 139, 0.72);
  transition: width 460ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.r90p-profile__progress-copy {
  margin-top: 8px;
  color: rgba(255, 239, 245, 0.60);
  font-size: 9px;
  text-align: right;
}

.r90p-profile__progress-copy strong {
  color: #ffbdd4;
}

.r90p-icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--r90p-text-soft);
  font: inherit;
  font-size: 19px;
  background: var(--r90p-bg-soft);
  border: 1px solid var(--r90p-border);
  border-radius: 11px;
  cursor: pointer;
}

.r90p-icon-button:hover {
  color: var(--r90p-text);
  border-color: var(--r90p-border-strong);
}

.r90p-profile-edit {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.r90p-profile-edit:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.r90p-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.r90p-kpi {
  min-width: 0;
  background: var(--r90p-bg-elevated);
  border: 1px solid var(--r90p-border);
  border-radius: 18px;
  box-shadow: var(--r90p-shadow-soft);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.r90p-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 77, 139, 0.24);
}

.r90p-kpi.is-active {
  border-color: rgba(255, 77, 139, 0.38);
  box-shadow:
    0 13px 34px rgba(255, 77, 139, 0.09),
    inset 0 2px 0 rgba(255, 77, 139, 0.62);
}

.r90p-kpi button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 17px 18px;
  color: inherit;
  text-align: left;
  font: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.r90p-kpi button:focus-visible {
  outline: 3px solid rgba(255, 77, 139, 0.28);
  outline-offset: 2px;
  border-radius: 16px;
}

.r90p-kpi__label {
  color: var(--r90p-text-soft);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.r90p-kpi strong {
  margin-top: 7px;
  color: var(--r90p-text);
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 750;
  letter-spacing: -0.045em;
}

.r90p-kpi__delta {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 670;
}

.r90p-kpi__delta.is-positive {
  color: var(--r90p-success);
}

.r90p-kpi__delta.is-negative {
  color: var(--r90p-danger);
}

.r90p-kpi small {
  margin-top: 3px;
  color: var(--r90p-text-subtle);
  font-size: 9px;
}

.r90p-panel {
  min-width: 0;
  padding: 22px;
  background: color-mix(in srgb, var(--r90p-bg-elevated) 96%, transparent);
  border: 1px solid var(--r90p-border);
  border-radius: 21px;
  box-shadow: var(--r90p-shadow-soft);
}

.r90p-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.r90p-panel-heading h2 {
  margin: 0;
  color: var(--r90p-text);
  font-family: "Bricolage Grotesque", "Geist", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.r90p-chart-controls,
.r90p-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.r90p-segmented {
  display: inline-flex;
  gap: 3px;
  max-width: 100%;
  padding: 3px;
  overflow-x: auto;
  background: var(--r90p-bg-muted);
  border: 1px solid var(--r90p-border);
  border-radius: 11px;
  scrollbar-width: none;
}

.r90p-segmented::-webkit-scrollbar {
  display: none;
}

.r90p-segmented button {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--r90p-text-soft);
  font: inherit;
  font-size: 9px;
  font-weight: 680;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.r90p-segmented button[aria-pressed="true"] {
  color: var(--r90p-text);
  background: var(--r90p-bg-elevated);
  box-shadow: 0 3px 10px rgba(53, 25, 38, 0.08);
}

.r90p-segmented--compact button {
  padding-inline: 9px;
}

.r90p-chart-panel {
  overflow: hidden;
}

.r90p-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 300px;
}

.r90p-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
  overflow: visible;
}

.r90p-chart-grid line {
  stroke: var(--r90p-grid);
  stroke-width: 1;
}

.r90p-chart-grid text,
.r90p-chart-x-label {
  fill: var(--r90p-text-subtle);
  font-family: "Geist", sans-serif;
  font-size: 10px;
}

.r90p-chart-area {
  fill: url("#r90p-area-gradient");
}

.r90p-chart-line {
  fill: none;
  stroke: url("#r90p-line-gradient");
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.r90p-chart-line--glow {
  stroke-width: 6;
  opacity: 0.22;
  filter: url("#r90p-line-glow");
}

.r90p-chart-target line {
  stroke: color-mix(in srgb, var(--r90p-violet) 70%, var(--r90p-text-subtle));
  stroke-width: 1.4;
  stroke-dasharray: 5 7;
}

.r90p-chart-target text {
  fill: var(--r90p-text-soft);
  font-family: "Geist", sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.r90p-chart-point {
  cursor: pointer;
  outline: none;
}

.r90p-chart-point__halo {
  fill: var(--r90p-accent);
  opacity: 0;
  transition: opacity 150ms ease, r 150ms ease;
}

.r90p-chart-point__dot {
  fill: var(--r90p-bg-elevated);
  stroke: var(--r90p-accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.r90p-chart-point:hover .r90p-chart-point__halo,
.r90p-chart-point:focus .r90p-chart-point__halo {
  opacity: 0.15;
}

.r90p-chart-point:focus .r90p-chart-point__dot {
  stroke-width: 5;
}

.r90p-chart-tooltip {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 112px;
  max-width: 190px;
  padding: 10px 12px;
  color: var(--r90p-text);
  background: color-mix(in srgb, var(--r90p-bg-elevated) 96%, transparent);
  border: 1px solid rgba(255, 77, 139, 0.22);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(61, 24, 42, 0.16);
  transform: translate(-50%, calc(-100% - 12px));
  pointer-events: none;
  backdrop-filter: blur(14px);
}

.r90p-chart-tooltip[hidden] {
  display: none;
}

.r90p-chart-tooltip strong {
  color: var(--r90p-accent-strong);
  font-size: 13px;
}

.r90p-chart-tooltip span {
  margin-top: 2px;
  color: var(--r90p-text-soft);
  font-size: 9px;
}

.r90p-chart-tooltip small {
  margin-top: 5px;
  padding-top: 5px;
  color: var(--r90p-text-subtle);
  font-size: 8px;
  border-top: 1px solid var(--r90p-border);
}

.r90p-chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 10px;
  padding: 13px 16px;
  background: var(--r90p-bg-soft);
  border: 1px solid var(--r90p-border);
  border-radius: 14px;
}

.r90p-chart-summary span {
  display: flex;
  flex-direction: column;
}

.r90p-chart-summary span:nth-child(2) {
  align-items: center;
}

.r90p-chart-summary span:nth-child(3) {
  align-items: flex-end;
}

.r90p-chart-summary small {
  color: var(--r90p-text-subtle);
  font-size: 8px;
  font-weight: 680;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.r90p-chart-summary strong {
  margin-top: 2px;
  font-size: 11px;
}

.r90p-chart-empty,
.r90p-gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 290px;
  padding: 30px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 77, 139, 0.09), transparent 32%),
    var(--r90p-bg-soft);
  border: 1px dashed var(--r90p-border-strong);
  border-radius: 17px;
}

.r90p-chart-empty__icon,
.r90p-gallery-empty > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--r90p-accent);
  font-size: 22px;
  background: rgba(255, 77, 139, 0.10);
  border-radius: 15px;
}

.r90p-chart-empty strong,
.r90p-gallery-empty strong {
  margin-top: 14px;
  font-size: 13px;
}

.r90p-chart-empty p,
.r90p-gallery-empty p {
  max-width: 400px;
  margin: 6px 0 0;
  color: var(--r90p-text-soft);
  font-size: 10px;
  line-height: 1.55;
}

.r90p-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}

.r90p-secure-pill,
.r90p-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  color: var(--r90p-text-soft);
  font-size: 8px;
  font-weight: 720;
  background: var(--r90p-bg-soft);
  border: 1px solid var(--r90p-border);
  border-radius: 999px;
}

.r90p-secure-pill span {
  color: var(--r90p-success);
}

.r90p-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.r90p-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.r90p-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.r90p-field > span,
.r90p-photo-fields legend {
  color: var(--r90p-text-soft);
  font-size: 9px;
  font-weight: 710;
}

.r90p-field > span small,
.r90p-photo-fields legend small {
  color: var(--r90p-text-subtle);
  font-size: inherit;
  font-weight: 550;
}

.r90p-field input:not([type="range"]),
.r90p-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: var(--r90p-text);
  font: inherit;
  font-size: 12px;
  background: var(--r90p-bg-soft);
  border: 1px solid var(--r90p-border);
  border-radius: 10px;
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.r90p-field textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
}

.r90p-field input:not([type="range"]):focus,
.r90p-field textarea:focus {
  background: var(--r90p-bg-elevated);
  border-color: rgba(255, 77, 139, 0.56);
  box-shadow: 0 0 0 3px rgba(255, 77, 139, 0.10);
}

.r90p-field input::placeholder,
.r90p-field textarea::placeholder {
  color: var(--r90p-text-subtle);
  opacity: 0.72;
}

.r90p-field--energy {
  justify-content: flex-end;
}

.r90p-field--energy > span {
  display: flex;
  justify-content: space-between;
}

.r90p-field--energy output {
  color: var(--r90p-accent-strong);
  font-size: 9px;
  font-weight: 780;
}

.r90p-field input[type="range"] {
  width: 100%;
  height: 40px;
  margin: 0;
  accent-color: var(--r90p-accent);
  cursor: pointer;
}

.r90p-field--full {
  grid-column: 1 / -1;
}

.r90p-photo-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.r90p-photo-fields legend {
  margin-bottom: 9px;
}

.r90p-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.r90p-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 13px 8px;
  overflow: hidden;
  color: var(--r90p-text-soft);
  text-align: center;
  background: linear-gradient(145deg, var(--r90p-bg-soft), var(--r90p-bg-muted));
  border: 1px dashed var(--r90p-border-strong);
  border-radius: 13px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.r90p-upload:hover {
  transform: translateY(-1px);
  background: linear-gradient(145deg, rgba(255, 77, 139, 0.06), var(--r90p-bg-soft));
  border-color: rgba(255, 77, 139, 0.45);
}

.r90p-upload:focus-within {
  border-color: var(--r90p-accent);
  box-shadow: 0 0 0 3px rgba(255, 77, 139, 0.11);
}

.r90p-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.001;
}

.r90p-upload__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 7px;
  color: var(--r90p-accent);
  font-size: 15px;
  background: rgba(255, 77, 139, 0.10);
  border-radius: 9px;
}

.r90p-upload strong {
  font-size: 10px;
}

.r90p-upload small {
  margin-top: 3px;
  color: var(--r90p-text-subtle);
  font-size: 7px;
}

.r90p-upload.has-file > .r90p-upload__icon,
.r90p-upload.has-file > strong,
.r90p-upload.has-file > small {
  opacity: 0;
}

.r90p-upload__preview {
  position: absolute;
  inset: 5px;
  overflow: hidden;
  background: var(--r90p-bg);
  border-radius: 10px;
}

.r90p-upload__preview[hidden] {
  display: none;
}

.r90p-upload__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r90p-upload__preview span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  overflow: hidden;
  padding: 4px 6px;
  color: #fff;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(24, 10, 17, 0.70);
  border-radius: 5px;
  backdrop-filter: blur(6px);
}

.r90p-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 3px;
}

.r90p-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 13px;
  color: var(--r90p-text);
  font: inherit;
  font-size: 10px;
  font-weight: 720;
  background: var(--r90p-bg-soft);
  border: 1px solid var(--r90p-border);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.r90p-button:hover {
  transform: translateY(-1px);
  border-color: var(--r90p-border-strong);
}

.r90p-button:active {
  transform: translateY(0);
}

.r90p-button:focus-visible,
.r90p-close:focus-visible,
.r90p-icon-button:focus-visible,
.r90p-segmented button:focus-visible {
  outline: 3px solid rgba(255, 77, 139, 0.28);
  outline-offset: 2px;
}

.r90p-button:disabled {
  cursor: wait;
  opacity: 0.60;
}

.r90p-button--primary {
  color: #fff;
  background: linear-gradient(135deg, #ff6199, var(--r90p-accent) 58%, #d546a7);
  border-color: transparent;
  box-shadow: 0 9px 22px rgba(255, 77, 139, 0.24);
}

.r90p-button--primary:hover {
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(255, 77, 139, 0.31);
}

.r90p-button--ghost {
  color: var(--r90p-text-soft);
  background: transparent;
}

.r90p-button--soft {
  color: var(--r90p-accent-strong);
  background: rgba(255, 77, 139, 0.08);
  border-color: rgba(255, 77, 139, 0.16);
}

.r90p-button--soft[aria-pressed="true"] {
  color: #fff;
  background: var(--r90p-accent);
}

.r90p-form-status {
  min-height: 14px;
  margin: -7px 0 0;
  color: var(--r90p-danger);
  font-size: 9px;
  text-align: right;
}

.r90p-history-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.r90p-history-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--r90p-bg-soft);
  border: 1px solid var(--r90p-border);
  border-radius: 12px;
}

.r90p-history-item__main {
  display: grid;
  grid-template-columns: 54px repeat(3, minmax(0, 1fr)) 16px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 9px 7px 9px 10px;
  color: inherit;
  text-align: left;
  font: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.r90p-history-item__main:hover {
  background: rgba(255, 77, 139, 0.04);
}

.r90p-history-item__main > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.r90p-history-item__main small {
  overflow: hidden;
  color: var(--r90p-text-subtle);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r90p-history-item__main strong {
  overflow: hidden;
  margin-top: 1px;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r90p-history-date {
  align-items: center;
  padding: 5px;
  color: var(--r90p-accent-strong);
  text-align: center;
  background: rgba(255, 77, 139, 0.08);
  border-radius: 8px;
}

.r90p-history-date strong {
  font-size: 13px;
}

.r90p-history-arrow {
  color: var(--r90p-text-subtle);
  font-size: 16px;
}

.r90p-history-delete {
  width: 30px;
  padding: 0;
  color: var(--r90p-text-subtle);
  font: inherit;
  font-size: 15px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--r90p-border);
  cursor: pointer;
}

.r90p-history-delete:hover {
  color: var(--r90p-danger);
  background: rgba(220, 52, 95, 0.06);
}

.r90p-history-empty {
  padding: 28px;
  color: var(--r90p-text-subtle);
  font-size: 10px;
  text-align: center;
  background: var(--r90p-bg-soft);
  border: 1px dashed var(--r90p-border-strong);
  border-radius: 13px;
}

.r90p-gallery-panel {
  margin-top: 16px;
}

.r90p-photo-timeline {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.r90p-photo-group {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 12px;
  background: var(--r90p-bg-soft);
  border: 1px solid var(--r90p-border);
  border-radius: 16px;
  transition: border-color 150ms ease, background 150ms ease;
}

.r90p-photo-group.is-selected {
  background: linear-gradient(100deg, rgba(255, 77, 139, 0.07), rgba(168, 85, 247, 0.04));
  border-color: rgba(255, 77, 139, 0.40);
}

.r90p-photo-group__heading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 7px 4px;
}

.r90p-photo-group__heading > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.r90p-photo-group__heading strong {
  font-size: 10px;
}

.r90p-photo-group__heading small {
  margin-top: 3px;
  color: var(--r90p-text-subtle);
  font-size: 8px;
}

.r90p-timeline-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 3px;
  background: var(--r90p-accent);
  border: 2px solid var(--r90p-bg-elevated);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 77, 139, 0.14);
}

.r90p-compare-check {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.r90p-compare-check input {
  position: absolute;
  opacity: 0;
}

.r90p-compare-check span {
  display: block;
  width: 18px;
  height: 18px;
  background: var(--r90p-bg-elevated);
  border: 1px solid var(--r90p-border-strong);
  border-radius: 5px;
}

.r90p-compare-check input:checked + span {
  background: var(--r90p-accent);
  border-color: var(--r90p-accent);
  box-shadow: inset 0 0 0 4px var(--r90p-bg-elevated);
}

.r90p-compare-check input:focus-visible + span {
  outline: 3px solid rgba(255, 77, 139, 0.25);
  outline-offset: 2px;
}

.r90p-photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}

.r90p-photo-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--r90p-bg-muted);
  border: 1px solid var(--r90p-border);
  border-radius: 12px;
  aspect-ratio: 4 / 5;
}

.r90p-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.r90p-photo-card:hover img {
  transform: scale(1.025);
}

.r90p-photo-card figcaption {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 6px 5px 8px;
  color: #fff;
  font-size: 8px;
  font-weight: 680;
  background: rgba(29, 12, 20, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.r90p-photo-card figcaption button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.r90p-photo-card figcaption button:hover {
  color: #fff;
  background: rgba(220, 52, 95, 0.72);
}

.r90p-photo-placeholder,
.r90p-photo-card--missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  color: var(--r90p-text-subtle);
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 77, 139, 0.08), transparent 36%),
    var(--r90p-bg-muted);
}

.r90p-photo-placeholder span,
.r90p-photo-card--missing span {
  font-size: 9px;
  font-weight: 680;
}

.r90p-photo-placeholder small,
.r90p-photo-card--missing small {
  margin-top: 3px;
  font-size: 7px;
}

.r90p-compare-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  padding: 18px;
  color: var(--r90p-text-soft);
  text-align: center;
  background: linear-gradient(90deg, rgba(255, 77, 139, 0.07), rgba(168, 85, 247, 0.05));
  border: 1px dashed rgba(255, 77, 139, 0.27);
  border-radius: 14px;
}

.r90p-compare-empty strong {
  font-size: 11px;
}

.r90p-compare-empty span {
  font-size: 8px;
}

.r90p-compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  background: linear-gradient(110deg, rgba(255, 77, 139, 0.06), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(255, 77, 139, 0.20);
  border-radius: 17px;
}

.r90p-compare-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.r90p-compare-date {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 5px;
}

.r90p-compare-date small {
  color: var(--r90p-text-subtle);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.r90p-compare-date strong {
  font-size: 10px;
}

.r90p-compare-divider {
  display: grid;
  place-items: center;
}

.r90p-compare-divider span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--r90p-accent), var(--r90p-violet));
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(255, 77, 139, 0.24);
}

.r90p-submodal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.r90p-submodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 9, 14, 0.54);
  backdrop-filter: blur(8px);
}

.r90p-submodal__card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 24px;
  background: var(--r90p-bg-elevated);
  border: 1px solid var(--r90p-border);
  border-radius: 21px;
  box-shadow: 0 30px 90px rgba(25, 8, 16, 0.34);
}

.r90p-submodal__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.r90p-submodal__heading h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Geist", sans-serif;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.r90p-submodal__card > p {
  margin: 10px 0 18px;
  color: var(--r90p-text-soft);
  font-size: 10px;
  line-height: 1.55;
}

.r90p-submodal .r90p-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.r90p-submodal .r90p-form-actions {
  margin-top: 20px;
}

.r90p-toast-region {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100% - 40px));
  pointer-events: none;
}

.r90p-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--r90p-text);
  background: color-mix(in srgb, var(--r90p-bg-elevated) 94%, transparent);
  border: 1px solid var(--r90p-border);
  border-radius: 13px;
  box-shadow: var(--r90p-shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(16px);
}

.r90p-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.r90p-toast > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #fff;
  background: var(--r90p-success);
  border-radius: 50%;
}

.r90p-toast.is-error > span {
  background: var(--r90p-danger);
}

.r90p-toast strong {
  font-size: 10px;
  font-weight: 680;
}

@media (max-width: 1180px) {
  .r90p-profile {
    grid-template-columns: 1fr 390px;
    gap: 22px;
  }

  .r90p-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r90p-workspace-grid {
    grid-template-columns: 1fr;
  }

  .r90p-history-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .r90p-topbar {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding-inline: 18px;
  }

  .r90p-client-title {
    display: none;
  }

  .r90p-main {
    width: min(100% - 28px, 760px);
    padding-top: 16px;
  }

  .r90p-profile {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px;
  }

  .r90p-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r90p-panel-heading {
    flex-direction: column;
  }

  .r90p-chart-controls,
  .r90p-gallery-controls {
    justify-content: flex-start;
    width: 100%;
  }

  .r90p-segmented {
    flex: 1 1 auto;
  }

  .r90p-photo-group {
    grid-template-columns: 1fr;
  }

  .r90p-photo-group__heading {
    padding-bottom: 0;
  }

  .r90p-compare-grid {
    grid-template-columns: 1fr;
  }

  .r90p-compare-divider {
    min-height: 34px;
  }

  .r90p-compare-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .r90p-launch-card {
    grid-template-columns: auto minmax(0, 1fr);
    width: calc(100% - 28px);
    margin: 14px 14px 0;
    padding: 14px;
  }

  .r90p-launch-card__icon {
    width: 43px;
    height: 43px;
  }

  .r90p-launch-card__action {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .r90p-topbar {
    min-height: 62px;
    padding: max(9px, env(safe-area-inset-top)) 12px 9px;
  }

  .r90p-brand-mark {
    width: 35px;
    height: 35px;
  }

  .r90p-brand small,
  .r90p-close span {
    display: none;
  }

  .r90p-close {
    width: 39px;
    height: 39px;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
  }

  .r90p-main {
    width: calc(100% - 20px);
    padding-bottom: 46px;
  }

  .r90p-mode-banner {
    align-items: flex-start;
  }

  .r90p-profile {
    min-height: 0;
    padding: 23px 18px 19px;
    border-radius: 20px;
  }

  .r90p-profile h2 {
    padding-right: 34px;
    font-size: 27px;
  }

  .r90p-profile__journey {
    padding: 15px;
  }

  .r90p-profile__numbers strong {
    font-size: 14px;
  }

  .r90p-kpi-grid {
    gap: 9px;
    margin-block: 10px;
  }

  .r90p-kpi {
    border-radius: 15px;
  }

  .r90p-kpi button {
    padding: 14px;
  }

  .r90p-kpi strong {
    font-size: 21px;
  }

  .r90p-panel {
    padding: 16px;
    border-radius: 17px;
  }

  .r90p-panel-heading {
    gap: 12px;
    margin-bottom: 14px;
  }

  .r90p-panel-heading h2 {
    font-size: 18px;
  }

  .r90p-chart-controls,
  .r90p-gallery-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .r90p-segmented {
    width: 100%;
  }

  .r90p-segmented button {
    flex: 1 0 auto;
    text-align: center;
  }

  .r90p-chart-wrap {
    min-height: 235px;
    margin-inline: -8px;
  }

  .r90p-chart {
    min-height: 235px;
  }

  .r90p-chart-summary {
    margin-inline: 0;
  }

  .r90p-workspace-grid {
    gap: 10px;
    margin-top: 10px;
  }

  .r90p-form-grid,
  .r90p-submodal .r90p-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r90p-field input:not([type="range"]),
  .r90p-field textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .r90p-upload-grid {
    grid-template-columns: 1fr;
  }

  .r90p-upload {
    min-height: 94px;
  }

  .r90p-history-list {
    grid-template-columns: 1fr;
  }

  .r90p-history-item__main {
    grid-template-columns: 50px repeat(2, minmax(0, 1fr)) 15px;
  }

  .r90p-history-item__main > span:nth-child(4) {
    display: none;
  }

  .r90p-photo-row {
    gap: 6px;
  }

  .r90p-photo-group {
    padding: 9px;
  }

  .r90p-compare-column {
    gap: 5px;
  }

  .r90p-submodal {
    align-items: end;
    padding: 0;
  }

  .r90p-submodal__card {
    max-height: 92vh;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
    overflow: auto;
    border-radius: 22px 22px 0 0;
  }

  .r90p-toast-region {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
  }
}

@media (max-width: 390px) {
  .r90p-form-grid,
  .r90p-submodal .r90p-form-grid {
    grid-template-columns: 1fr;
  }

  .r90p-kpi__delta {
    min-height: 22px;
  }

  .r90p-profile__numbers strong {
    font-size: 12px;
  }
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .r90p-overlay {
    --r90p-bg: #100c0e;
    --r90p-bg-elevated: #1a1417;
    --r90p-bg-soft: #20181c;
    --r90p-bg-muted: #281e23;
    --r90p-text: #fff5f8;
    --r90p-text-soft: #c7b2bc;
    --r90p-text-subtle: #927d87;
    --r90p-border: rgba(255, 229, 239, 0.10);
    --r90p-border-strong: rgba(255, 229, 239, 0.18);
    --r90p-grid: rgba(255, 229, 239, 0.08);
    --r90p-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
    --r90p-shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.24);
    color-scheme: dark;
  }
}

@media (prefers-reduced-motion: reduce) {
  .r90p-overlay *,
  .r90p-overlay *::before,
  .r90p-overlay *::after,
  .r90p-launch-card,
  .r90p-launch-card * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* Progress Hub v2 hardening: mobile chart, contrast, focus and private-photo presentation */
:root {
  --r90p-accent-strong: #bf1252;
  --r90p-success: #087552;
  --r90p-danger: #b4234d;
}

.r90p-overlay {
  --r90p-text-subtle: #69535e;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] .r90p-overlay {
  --r90p-text-subtle: #c4aeb8;
}

.r90p-profile h2,
.r90p-panel-heading h2,
.r90p-submodal__heading h2,
.r90p-chart-grid text,
.r90p-chart-x-label,
.r90p-chart-target text {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.r90p-chart-panel {
  overflow: visible;
}

.r90p-chart-wrap {
  min-height: 0;
  padding-bottom: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: rgba(191, 18, 82, 0.30) transparent;
  scrollbar-width: thin;
}

.r90p-chart {
  width: 100%;
  min-width: 720px;
  min-height: 0;
  aspect-ratio: 920 / 340;
}

.r90p-chart-grid text,
.r90p-chart-x-label,
.r90p-chart-target text {
  font-size: 13px;
}

.r90p-chart-tooltip span,
.r90p-chart-tooltip small {
  font-size: 10px;
}

.r90p-button--primary {
  background: linear-gradient(135deg, #d21962, #b70f58 58%, #8e2e92);
}

.r90p-button--soft[aria-pressed="true"],
.r90p-compare-check input:checked + span {
  background: var(--r90p-accent-strong);
  border-color: var(--r90p-accent-strong);
}

.r90p-form-status {
  color: var(--r90p-text-soft);
  font-size: 10px;
}

.r90p-form-status.is-error {
  color: var(--r90p-danger);
}

.r90p-upload small,
.r90p-history-item__main small,
.r90p-photo-group__heading small,
.r90p-photo-card figcaption {
  font-size: 10px;
}

.r90p-upload strong,
.r90p-history-item__main strong,
.r90p-photo-group__heading strong {
  font-size: 11px;
}

.r90p-photo-card {
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 77, 139, 0.10), transparent 42%),
    #171015;
}

.r90p-photo-card img {
  object-fit: contain;
}

.r90p-photo-card figcaption button {
  width: 32px;
  height: 32px;
  font-size: 18px;
}

.r90p-compare-check,
.r90p-compare-check span {
  width: 28px;
  height: 28px;
}

.r90p-history-delete {
  width: 42px;
}

.r90p-history-item__main:focus-visible,
.r90p-history-delete:focus-visible,
.r90p-photo-card figcaption button:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid rgba(191, 18, 82, 0.34);
  outline-offset: -3px;
}

.r90p-submodal__card {
  max-height: min(90vh, 760px);
  overflow: auto;
}

.r90p-close[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.60;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .r90p-overlay {
    --r90p-text-subtle: #c4aeb8;
  }
}

@media (max-width: 900px) {
  .r90p-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .r90p-client-title {
    display: flex;
    max-width: min(52vw, 360px);
  }

  .r90p-client-title small {
    display: none;
  }
}

@media (max-width: 640px) {
  .r90p-client-title {
    justify-self: stretch;
    max-width: none;
    padding: 5px 9px 5px 5px;
  }

  .r90p-client-title .r90p-avatar {
    width: 28px;
    height: 28px;
  }

  .r90p-client-title strong {
    font-size: 11px;
  }

  .r90p-chart-wrap,
  .r90p-chart {
    min-height: 0;
  }
}

/* Progress Hub v3: edge-safe tooltips, touch targets and text contrast */
.r90p-chart-tooltip.is-below {
  transform: translate(-50%, 12px);
}

.r90p-chart-point__halo {
  pointer-events: all;
}

.r90p-eyebrow {
  color: var(--r90p-accent-strong);
}

.r90p-avatar {
  background: linear-gradient(135deg, #bf1252, #7b2b9e);
}


/* Progress Hub v3.1: dark-theme contrast */
html[data-theme="dark"] .r90p-overlay,
html[data-theme="dark"] .r90p-launch-card {
  --r90p-accent-strong: #ff78aa;
  --r90p-success: #55d6a5;
  --r90p-danger: #ff7a9d;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .r90p-overlay,
  html:not([data-theme="light"]) .r90p-launch-card {
    --r90p-accent-strong: #ff78aa;
    --r90p-success: #55d6a5;
    --r90p-danger: #ff7a9d;
  }
}

/* Progress Hub v4: complete history, accessible chart navigation and photo viewer */
.r90p-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.r90p-chart {
  min-width: var(--r90p-chart-min-width, 760px);
}

.r90p-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--r90p-text-subtle);
  font-size: 10px;
  text-align: center;
}

.r90p-pager button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--r90p-text-soft);
  font: inherit;
  font-weight: 700;
  background: var(--r90p-bg-soft);
  border: 1px solid var(--r90p-border);
  border-radius: 10px;
  cursor: pointer;
}

.r90p-pager button:first-child {
  justify-self: start;
}

.r90p-pager button:last-child {
  justify-self: end;
}

.r90p-pager button:hover:not(:disabled) {
  color: var(--r90p-text);
  border-color: var(--r90p-border-strong);
}

.r90p-pager button:focus-visible {
  outline: 3px solid rgba(191, 18, 82, 0.34);
  outline-offset: 2px;
}

.r90p-pager button:disabled {
  cursor: default;
  opacity: 0.45;
}

.r90p-history-item__main {
  grid-template-columns: 54px repeat(2, minmax(0, 1fr)) 16px;
}

.r90p-history-item__details {
  grid-column: 2 / -1;
  display: flex !important;
  flex-flow: row wrap !important;
  gap: 5px 10px;
  padding-top: 3px;
}

.r90p-history-item__details small {
  display: inline-flex;
  gap: 3px;
  overflow: visible;
  white-space: nowrap;
}

.r90p-history-item__details b {
  color: var(--r90p-text-soft);
  font-weight: 700;
}

.r90p-photo-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.r90p-photo-open img {
  width: 100%;
  height: 100%;
}

.r90p-photo-open:focus-visible {
  outline: 4px solid var(--r90p-accent-strong);
  outline-offset: -4px;
}

.r90p-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.r90p-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 6, 10, 0.88);
  backdrop-filter: blur(18px);
}

.r90p-lightbox__card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1040px, 100%);
  height: min(92vh, 860px);
  overflow: hidden;
  background: var(--r90p-bg-elevated);
  border: 1px solid var(--r90p-border-strong);
  border-radius: 24px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.48);
}

.r90p-lightbox__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--r90p-border);
}

.r90p-lightbox__heading h2 {
  margin: 0;
  overflow: hidden;
  color: var(--r90p-text);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r90p-lightbox__heading .r90p-eyebrow {
  margin-bottom: 3px;
}

.r90p-lightbox__count {
  color: var(--r90p-text-soft);
  font-size: 11px;
  font-weight: 700;
}

.r90p-lightbox__stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 77, 139, 0.12), transparent 42%),
    #100b0e;
  touch-action: pan-y;
}

.r90p-lightbox__stage figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.r90p-lightbox__stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.r90p-lightbox__stage figcaption {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  text-align: center;
  background: rgba(16, 11, 14, 0.92);
}

.r90p-lightbox__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  font: inherit;
  font-size: 32px;
  background: rgba(29, 12, 20, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.r90p-lightbox__nav.is-prev {
  left: 16px;
}

.r90p-lightbox__nav.is-next {
  right: 16px;
}

.r90p-lightbox__nav:hover {
  background: rgba(191, 18, 82, 0.82);
}

.r90p-lightbox__nav:focus-visible {
  outline: 3px solid #ff9fc2;
  outline-offset: 3px;
}

.r90p-lightbox__hint {
  margin: 0;
  padding: 9px 14px;
  color: var(--r90p-text-subtle);
  font-size: 10px;
  text-align: center;
  border-top: 1px solid var(--r90p-border);
}

.r90p-loading-close {
  position: fixed;
  z-index: 2;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
}

.r90p-close[aria-busy="true"] {
  cursor: pointer;
  opacity: 1;
}

@media (max-width: 1180px) {
  .r90p-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .r90p-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r90p-photo-row,
  .r90p-compare-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r90p-history-item__main {
    grid-template-columns: 50px repeat(2, minmax(0, 1fr)) 15px;
  }

  .r90p-history-item__main > span.r90p-history-arrow:nth-child(4) {
    display: flex;
  }

  .r90p-history-item__details {
    grid-column: 1 / -1;
    padding: 6px 2px 0;
  }

  .r90p-pager {
    grid-template-columns: 1fr 1fr;
  }

  .r90p-pager span {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .r90p-pager button {
    width: 100%;
    min-height: 44px;
  }

  .r90p-lightbox {
    padding: 0;
  }

  .r90p-lightbox__card {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }

  .r90p-lightbox__heading {
    padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  }

  .r90p-lightbox__heading h2 {
    font-size: 14px;
  }

  .r90p-lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .r90p-lightbox__nav.is-prev {
    left: 8px;
  }

  .r90p-lightbox__nav.is-next {
    right: 8px;
  }

  .r90p-lightbox__hint {
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .r90p-photo-row,
  .r90p-compare-column {
    grid-template-columns: 1fr;
  }
}
/* Progress Hub v6: mobile polish, Reshape90 brand depth and accessible motion */
.r90p-overlay {
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior: contain;
  animation: r90p-overlay-in 240ms cubic-bezier(.2, .75, .25, 1) both;
}

.r90p-overlay:focus {
  outline: 0;
}

.r90p-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.r90p-topbar {
  grid-template-columns: minmax(150px, 1fr) minmax(0, auto) minmax(150px, 1fr);
  padding-right: max(28px, env(safe-area-inset-right));
  padding-left: max(28px, env(safe-area-inset-left));
  animation: r90p-topbar-enter 360ms cubic-bezier(.2, .75, .25, 1) both;
}

.r90p-brand-mark {
  background: linear-gradient(145deg, rgba(255, 77, 139, 0.16), rgba(148, 18, 70, 0.10));
  border-color: rgba(255, 77, 139, 0.24);
}

.r90p-avatar,
.r90p-launch-card__icon {
  background: linear-gradient(145deg, #ff679d 0%, #e92e74 54%, #941246 100%);
}

.r90p-client-title,
.r90p-client-title > div {
  min-width: 0;
}

.r90p-client-title strong {
  display: block;
  max-width: 100%;
}

.r90p-close,
.r90p-close:focus,
.r90p-close:focus-visible {
  box-shadow: none;
}

.r90p-profile,
.r90p-panel {
  scroll-margin-top: 92px;
}

.r90p-profile {
  background:
    radial-gradient(circle at 79% -18%, rgba(255, 111, 163, 0.18), transparent 44%),
    linear-gradient(126deg, #2b1019 0%, #481329 48%, #66183a 100%);
  border-color: rgba(255, 211, 227, 0.12);
  box-shadow:
    0 25px 70px rgba(77, 15, 43, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.r90p-profile::before {
  background: radial-gradient(circle, rgba(255, 77, 139, 0.23), transparent 66%);
}

.r90p-profile::after {
  background: radial-gradient(circle, rgba(139, 18, 68, 0.24), transparent 66%);
}

.r90p-profile .r90p-eyebrow {
  color: #ffabc9;
}

.r90p-profile h2 {
  overflow-wrap: anywhere;
}

.r90p-progress-track > span {
  background: linear-gradient(90deg, #ff6fa3 0%, #ff4d8b 56%, #bd1658 100%);
  box-shadow: 0 0 18px rgba(255, 77, 139, 0.34);
}


.r90p-kpi.is-active {
  background:
    linear-gradient(var(--r90p-bg-elevated), var(--r90p-bg-elevated)) padding-box,
    linear-gradient(135deg, rgba(255, 77, 139, 0.88), rgba(148, 18, 70, 0.52)) border-box;
}


.r90p-field input:not([type="range"]),
.r90p-field textarea {
  min-width: 0;
  max-width: 100%;
}

.r90p-field input[type="date"] {
  min-inline-size: 0;
  height: 44px;
  text-align: left;
}

.r90p-field input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.r90p-lightbox.is-opening {
  animation: r90p-lightbox-backdrop-in 180ms ease both;
}

.r90p-lightbox.is-opening .r90p-lightbox__card {
  animation: r90p-lightbox-card-in 220ms cubic-bezier(.2, .75, .25, 1) both;
}

.r90p-lightbox__stage figure {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.r90p-lightbox__stage .r90p-lightbox__ambient {
  position: absolute;
  z-index: 0;
  inset: -8%;
  width: 116%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  filter: blur(18px) brightness(0.48) saturate(0.84);
  opacity: 0.48;
  transform: scale(1.04);
  pointer-events: none;
}

.r90p-lightbox__stage .r90p-lightbox__image,
.r90p-lightbox__stage figcaption {
  position: relative;
  z-index: 1;
}

.r90p-lightbox__stage .r90p-lightbox__image {
  animation: r90p-photo-reveal 180ms ease both;
}

.r90p-overlay.is-opening .r90p-profile {
  animation: r90p-card-enter 480ms 70ms cubic-bezier(.2, .75, .25, 1) both;
}

.r90p-overlay.is-opening .r90p-kpi {
  animation: r90p-card-enter 420ms cubic-bezier(.2, .75, .25, 1) both;
}

.r90p-overlay.is-opening .r90p-kpi:nth-child(1) { animation-delay: 110ms; }
.r90p-overlay.is-opening .r90p-kpi:nth-child(2) { animation-delay: 145ms; }
.r90p-overlay.is-opening .r90p-kpi:nth-child(3) { animation-delay: 180ms; }
.r90p-overlay.is-opening .r90p-kpi:nth-child(4) { animation-delay: 215ms; }
.r90p-overlay.is-opening .r90p-kpi:nth-child(5) { animation-delay: 250ms; }
.r90p-overlay.is-opening .r90p-kpi:nth-child(6) { animation-delay: 285ms; }

.r90p-overlay.is-opening .r90p-panel {
  animation: r90p-card-enter 430ms 180ms cubic-bezier(.2, .75, .25, 1) both;
}

.r90p-overlay.is-opening .r90p-chart-line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 0;
  animation: r90p-chart-draw 760ms 180ms cubic-bezier(.2, .7, .25, 1) both;
}

.r90p-overlay.is-opening .r90p-chart-area {
  animation: r90p-chart-area-in 620ms 320ms ease both;
}

.r90p-kpi__label,
.r90p-kpi__delta,
.r90p-kpi small {
  font-size: 10px;
}

@keyframes r90p-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes r90p-topbar-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes r90p-card-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes r90p-chart-draw {
  from { stroke-dashoffset: 1400; opacity: 0.35; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes r90p-chart-area-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes r90p-lightbox-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes r90p-lightbox-card-in {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes r90p-photo-reveal {
  from { opacity: 0; transform: scale(.992); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .r90p-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .r90p-client-title {
    display: flex;
    width: min(100%, 420px);
    max-width: min(52vw, 420px);
    overflow: hidden;
  }
}

@media (min-width: 521px) and (max-width: 640px) {
  .r90p-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .r90p-topbar {
    grid-template-columns: 35px minmax(0, 1fr) 39px;
    column-gap: 8px;
    min-height: 62px;
    padding-top: max(9px, env(safe-area-inset-top));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: 9px;
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .r90p-brand {
    gap: 0;
  }

  .r90p-brand > div {
    display: none;
  }

  .r90p-brand-mark {
    width: 35px;
    height: 35px;
  }

  .r90p-client-title {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    padding: 4px 9px 4px 4px;
    overflow: hidden;
  }

  .r90p-client-title > div {
    width: 100%;
    overflow: hidden;
  }

  .r90p-client-title strong {
    font-size: 12px;
  }

  .r90p-close {
    width: 39px;
    height: 39px;
    padding: 0;
    border-radius: 12px;
  }

  .r90p-profile,
  .r90p-panel {
    scroll-margin-top: 76px;
  }

  .r90p-kpi button {
    padding: 12px;
  }

  .r90p-kpi strong {
    margin-top: 5px;
    font-size: 20px;
  }

  .r90p-kpi__delta,
  .r90p-kpi small {
    line-height: 1.25;
  }

  .r90p-chart-controls > .r90p-segmented:not(.r90p-segmented--compact) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .r90p-chart-controls > .r90p-segmented--compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r90p-chart-controls .r90p-segmented button {
    min-width: 0;
    padding-inline: 6px;
  }

  .r90p-field--date {
    grid-column: 1 / -1;
  }

  .r90p-lightbox__card {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
  }
}

@media (max-width: 390px) {
  .r90p-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r90p-submodal .r90p-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (pointer: coarse) {
  .r90p-overlay {
    scrollbar-width: none;
  }

  .r90p-overlay::-webkit-scrollbar {
    display: none;
    width: 0;
  }
}

@media (hover: none) {
  .r90p-kpi:hover,
  .r90p-launch-card:hover,
  .r90p-button:hover {
    transform: none;
  }

  .r90p-photo-card:hover img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .r90p-overlay,
  .r90p-topbar,
  .r90p-profile,
  .r90p-kpi,
  .r90p-panel,
  .r90p-chart-line,
  .r90p-chart-area,
  .r90p-lightbox,
  .r90p-lightbox__card,
  .r90p-lightbox__image {
    animation: none !important;
  }
}
