#result {
  position: relative;
  background: var(--bg-soft);
}

#result::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(124, 58, 237, 0.34), transparent 38%),
    linear-gradient(180deg, #24113f 0%, #13091f 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1200ms cubic-bezier(0.45, 0.05, 0.2, 1);
}

#result.is-field::before {
  opacity: 1;
}

#result > .shell {
  position: relative;
  z-index: 1;
}

#result .eyebrow,
#result h2 {
  transition: color 1200ms cubic-bezier(0.45, 0.05, 0.2, 1);
}

#result.is-field .eyebrow {
  color: #c5b4f0;
}

#result.is-field h2 {
  color: #f7f4ff;
}

#result.is-field .section__lead {
  color: rgba(236, 224, 248, 0.78);
}

.result-panels {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.result-panel {
  --rp: #7b46f5;
  --rp-ink: #241c30;
  --rp-muted: #6f6780;
  --panel-pad-x: 18px;
  --panel-pad-b: 18px;
  position: relative;
  z-index: 0;
  display: grid;
  overflow: hidden;
  padding: 22px var(--panel-pad-x) var(--panel-pad-b);
  border: 1px solid rgba(196, 176, 230, 0.45);
  border-radius: 28px;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(196, 168, 255, 0.35), transparent 62%),
    linear-gradient(180deg, #fffcff 0%, #f6f1ff 100%);
  box-shadow: 0 14px 32px rgba(70, 40, 120, 0.06);
  color: var(--rp-ink);
  transform: scale(var(--panel-scale, 1));
  transform-origin: center center;
}

.result-panel--time {
  border: 1px solid rgba(196, 181, 253, 0.55);
  background: linear-gradient(145deg, #ffffff 0%, #fbfaff 100%);
  box-shadow: 0 30px 80px rgba(30, 13, 56, 0.28);
}

.result-panel--flow {
  --rp: #c44b9a;
  border-color: rgba(214, 190, 242, 0.85);
  background: #f1e9fd;
}

.result-panel--team {
  --rp: #6a4de0;
  border-color: rgba(186, 176, 230, 0.6);
  background:
    radial-gradient(70% 42% at 100% 100%, rgba(186, 176, 255, 0.35), transparent 64%),
    linear-gradient(180deg, #fbfaff 0%, #f3f0ff 100%);
}

.result-panel__index {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rp);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.result-panel__index::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.result-panel h3 {
  margin-top: 0;
  max-width: 12em;
  color: #17141f;
  font-size: clamp(1.45rem, 6.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.result-panel__text {
  margin-top: 8px;
  max-width: 28em;
  color: var(--rp-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.result-panel__cta {
  justify-self: start;
  margin-top: 8px;
  max-width: 28em;
  font-size: 0.92rem;
  line-height: 1.4;
}

.result-panel__benefit {
  justify-self: start;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rp) 12%, white);
  color: var(--rp);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.result-panel--flow .result-panel__benefit {
  background: #fff;
  color: #7b46f5;
  box-shadow: inset 0 0 0 1px rgba(123, 70, 245, 0.16);
}

.result-viz {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
}

.result-panel--time .result-viz--week {
  justify-self: stretch;
  width: auto;
  max-width: none;
  margin: 16px 0 0;
}

.result-viz--week img,
.result-viz--flow img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.result-panel--flow .result-viz--flow {
  justify-self: stretch;
  width: auto;
  max-width: none;
  margin: 16px 0 0;
  container-type: inline-size;
}

.result-viz--flow .result-flow {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.result-flow__stage {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(196, 181, 253, 0.55);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  box-shadow: 0 14px 28px rgba(48, 24, 88, 0.08);
}

.result-flow__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.result-flow__title {
  margin: 0;
  color: #17141f;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.result-flow__count {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d989c0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
}

.result-flow__check {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2e8b6f;
}

.result-flow__check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

.result-flow__rows {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-flow__row,
.result-flow__book {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
}

.result-flow__row.is-selected {
  border-color: #b06ae0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(176, 106, 224, 0.14);
}

.result-flow__avatar,
.result-flow__glyph {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #efe6ff;
  color: #5c3c78;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.result-flow__avatar--lilac { background: #e7e4ff; color: #4338a8; }
.result-flow__avatar--orchid { background: #f8e8f4; color: #8a3d78; }
.result-flow__avatar--ink { background: #ece8f6; color: #3d3558; }

.result-flow__glyph {
  border-radius: 9px;
  background: #f3eeff;
  color: #6d46f5;
}

.result-flow__glyph svg {
  width: 16px;
  height: 16px;
}

.result-flow__glyph--cal {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f1eaff;
}

.result-flow__stage--booking .result-flow__book {
  grid-template-columns: 36px minmax(0, 1fr);
}

.result-flow__body {
  display: grid;
  min-width: 0;
}

.result-flow__name {
  color: #17151f;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.result-flow__when {
  color: #7a7388;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.result-flow__connector {
  display: grid;
  place-items: center;
  height: 32px;
}

.result-flow__line {
  display: block;
  width: 48px;
  height: 28px;
}

.result-flow__line--across { display: none; }

@container (min-width: 500px) {
  .result-viz--flow .result-flow {
    grid-template-columns: minmax(0, 1.15fr) 40px minmax(0, 1.05fr) 40px minmax(0, 0.9fr);
    align-items: center;
    gap: 0;
  }

  .result-flow__connector {
    height: auto;
  }

  .result-flow__line--down { display: none; }
  .result-flow__line--across {
    display: block;
    width: 40px;
    height: 64px;
  }

  .result-flow__stage {
    padding: 10px;
  }

  .result-flow__title { font-size: 0.88rem; }
  .result-flow__name { font-size: 0.8rem; }
  .result-flow__when { font-size: 0.72rem; }
}

.result-viz__pending {
  display: none;
  margin: 0;
  padding: 28px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #6f6780;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}

html.js .result-viz--week.is-missing img { display: none; }

html.js .result-viz--week.is-missing .result-viz__pending {
  display: block;
}

.result-flow,
.result-steps {
  display: grid;
  gap: 14px;
}

.result-flow__card,
.result-steps li {
  position: relative;
  display: grid;
  align-items: center;
  border: 1px solid rgba(214, 198, 236, 0.7);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(80, 50, 130, 0.05);
}

.result-flow__card {
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 16px;
}

.result-flow__card:not(:last-child)::before,
.result-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  z-index: 1;
  width: 1px;
  height: 8px;
}

.result-flow__card:not(:last-child)::before {
  background: #e7a3c8;
}

.result-flow__card:not(:last-child)::after,
.result-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(50% - 3px);
  bottom: -14px;
  z-index: 1;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #e09ac4;
  border-bottom: 1.5px solid #e09ac4;
  transform: rotate(45deg);
}

.result-steps li:not(:last-child)::before {
  background: #c4b6ea;
}

.result-steps li:not(:last-child)::after {
  border-color: #b7a6e8;
}

.result-flow__icon,
.result-steps__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.result-flow__icon {
  background: #fdeef6;
  color: #c44b9a;
}

.result-flow__card:nth-child(2) .result-flow__icon {
  background: #f3eaff;
  color: #7b46f5;
}

.result-flow__card:nth-child(3) .result-flow__icon {
  background: #e8f8f1;
  color: #15915a;
}

.result-flow__icon svg,
.result-steps__icon svg {
  width: 18px;
  height: 18px;
}

.result-flow__copy strong,
.result-steps strong {
  display: block;
  color: #241c30;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.result-flow__copy small,
.result-steps small {
  display: block;
  margin-top: 1px;
  color: #8a8298;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
}

.result-flow__meta {
  color: #b48aaa;
}

.result-flow__dot {
  width: 8px;
  height: 8px;
  justify-self: end;
  border-radius: 50%;
  background: #e23cad;
}

.result-flow__dot--violet { background: #8b5cf6; }

.result-flow__done {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
  justify-self: end;
  place-items: center;
  border-radius: 50%;
  background: #dff8ea;
  color: #15915a;
}

.result-flow__done::after,
.result-status__check::after {
  content: "";
  width: 7px;
  height: 4px;
  border-bottom: 1.6px solid currentColor;
  border-left: 1.6px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
}

.result-steps {
  gap: 12px;
}

.result-steps li {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 14px;
}

.result-steps__icon {
  background: #f1ecff;
  color: #6a4de0;
}

.result-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f8ef;
  color: #128a52;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.result-status__check {
  display: none;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #dff8ea;
  color: #15915a;
}

@media (max-width: 389px) {
  .result-status {
    padding: 0;
    background: transparent;
  }

  .result-status__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .result-status__check {
    display: grid;
  }
}

@media (min-width: 900px) {
  .result-panels {
    gap: 18px;
    margin-top: 48px;
  }

  .result-panel {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    grid-template-areas:
      "title viz"
      "text viz"
      "benefit viz";
    column-gap: 36px;
    align-items: center;
    --panel-pad-x: 28px;
    --panel-pad-b: 28px;
    padding: 28px;
  }

  .result-panel h3 { grid-area: title; margin-top: 0; font-size: 1.85rem; }
  .result-panel__text { grid-area: text; }
  .result-panel__benefit { grid-area: benefit; margin-top: 16px; }

  .result-viz { grid-area: viz; margin-top: 0; }

  .result-panel--time,
  .result-panel--flow,
  .result-panel--team {
    grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
    align-items: start;
    column-gap: 28px;
  }

  .result-panel--time,
  .result-panel--team {
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas:
      ". viz"
      "title viz"
      "text viz"
      "benefit viz"
      ". viz";
  }

  .result-panel--flow {
    grid-template-rows: 1fr auto auto auto auto 1fr;
    grid-template-areas:
      ". viz"
      "title viz"
      "text viz"
      "cta viz"
      "benefit viz"
      ". viz";
  }

  .result-panel--flow .result-panel__cta {
    grid-area: cta;
    align-self: start;
    max-width: 18em;
    margin-top: 12px;
    font-size: 1.02rem;
    line-height: 1.4;
  }

  .result-panel--time h3,
  .result-panel--flow h3,
  .result-panel--team h3 {
    max-width: 8.6em;
    font-size: clamp(2.55rem, 3vw, 3.15rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  .result-panel--time .result-panel__text,
  .result-panel--flow .result-panel__text,
  .result-panel--team .result-panel__text {
    max-width: 18em;
    margin-top: 14px;
    font-size: 1.08rem;
    line-height: 1.4;
  }

  .result-panel--time .result-panel__benefit,
  .result-panel--flow .result-panel__benefit,
  .result-panel--team .result-panel__benefit {
    margin-top: 18px;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .result-panel--time .result-viz--week {
    width: auto;
    margin: 0;
  }

  .result-panel--flow .result-viz--flow {
    width: auto;
    margin: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .result-panel.is-armed:not(.is-inview) .weekcal__agenda,
  html.js .result-panel.is-armed:not(.is-inview) .weekcal__board,
  html.js .result-panel.is-armed:not(.is-inview) .result-viz--flow .result-flow,
  html.js .result-panel.is-armed:not(.is-inview) .result-steps li {
    opacity: 0;
  }

  html.js .result-panel--time.is-inview .weekcal__agenda,
  html.js .result-panel--time.is-inview .weekcal__board {
    animation: result-row-in 520ms var(--ease) both;
  }

  html.js .result-panel--time.is-inview .weekcal__autos li,
  html.js .result-panel--time.is-inview .weekcal__event--auto {
    animation: result-row-in 420ms var(--ease) both;
  }

  html.js .result-panel--time.is-inview .weekcal__autos li:nth-child(1),
  html.js .result-panel--time.is-inview .weekcal__event--auto:nth-of-type(1) { animation-delay: 80ms; }
  html.js .result-panel--time.is-inview .weekcal__autos li:nth-child(2),
  html.js .result-panel--time.is-inview .weekcal__event--auto:nth-of-type(2) { animation-delay: 160ms; }
  html.js .result-panel--time.is-inview .weekcal__autos li:nth-child(3),
  html.js .result-panel--time.is-inview .weekcal__event--auto:nth-of-type(3) { animation-delay: 240ms; }

  html.js .result-panel--time.is-inview .weekcal__timeline li {
    animation: result-row-in 420ms var(--ease) both;
  }

  html.js .result-panel--time.is-inview .weekcal__timeline li:nth-child(1) { animation-delay: 80ms; }
  html.js .result-panel--time.is-inview .weekcal__timeline li:nth-child(2) { animation-delay: 160ms; }
  html.js .result-panel--time.is-inview .weekcal__timeline li:nth-child(3) { animation-delay: 240ms; }
  html.js .result-panel--time.is-inview .weekcal__timeline li:nth-child(4) { animation-delay: 320ms; }
  html.js .result-panel--time.is-inview .weekcal__timeline li:nth-child(5) { animation-delay: 400ms; }
  html.js .result-panel--time.is-inview .weekcal__timeline li:nth-child(6) { animation-delay: 500ms; }

  html.js .result-panel--time.is-inview .weekcal__event--focus {
    animation: result-row-in 520ms var(--ease) 480ms both;
  }

  html.js .result-panel--flow.is-inview .result-viz--flow .result-flow {
    animation: result-row-in 520ms var(--ease) both;
  }

  html.js .result-panel--team.is-inview .result-steps li {
    animation: result-row-in 420ms var(--ease) both;
  }

  html.js .result-panel--team.is-inview .result-steps li:nth-child(1) { animation-delay: 60ms; }
  html.js .result-panel--team.is-inview .result-steps li:nth-child(2) { animation-delay: 180ms; }
  html.js .result-panel--team.is-inview .result-steps li:nth-child(3) { animation-delay: 300ms; }
  html.js .result-panel--team.is-inview .result-steps li:nth-child(4) { animation-delay: 420ms; }
  html.js .result-panel--team.is-inview .result-steps li:nth-child(5) { animation-delay: 540ms; }
}

@keyframes result-row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

[data-theme="dark"] .result-panel {
  --rp-ink: #f7f4fb;
  --rp-muted: rgba(236, 224, 248, 0.76);
  border-color: rgba(196, 176, 230, 0.22);
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(124, 92, 210, 0.28), transparent 62%),
    linear-gradient(180deg, #221c30 0%, #1a1426 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .result-panel--time {
  --rp-ink: #241c30;
  --rp-muted: #6f6780;
  border: 1px solid rgba(196, 181, 253, 0.55);
  background: linear-gradient(145deg, #ffffff 0%, #fbfaff 100%);
  box-shadow: 0 30px 80px rgba(30, 13, 56, 0.28);
  color: #241c30;
}

[data-theme="dark"] .result-panel--time .result-panel__benefit {
  background: color-mix(in srgb, var(--rp) 12%, white);
}

[data-theme="dark"] .result-panel--flow {
  border-color: rgba(196, 176, 230, 0.28);
  background: #241c32;
}

[data-theme="dark"] .result-panel--team {
  background:
    radial-gradient(70% 42% at 100% 100%, rgba(106, 77, 224, 0.24), transparent 64%),
    linear-gradient(180deg, #1c1830 0%, #151226 100%);
}

[data-theme="dark"] .result-panel h3,
[data-theme="dark"] .result-flow__copy strong,
[data-theme="dark"] .result-steps strong {
  color: #f7f4fb;
}

[data-theme="dark"] .result-panel--time h3 {
  color: #17141f;
}

[data-theme="dark"] .result-panel__benefit {
  background: color-mix(in srgb, var(--rp) 24%, #1a1424);
}

[data-theme="dark"] .result-panel--flow .result-panel__benefit {
  background: color-mix(in srgb, #7b46f5 22%, #1a1424);
  color: #d7c8ff;
  box-shadow: inset 0 0 0 1px rgba(215, 200, 255, 0.16);
}

[data-theme="dark"] .result-viz__pending,
[data-theme="dark"] .result-flow__card,
[data-theme="dark"] .result-steps li {
  border-color: rgba(214, 198, 236, 0.16);
  background: rgba(32, 26, 46, 0.92);
  color: #f4eefb;
}

[data-theme="dark"] .result-flow__icon,
[data-theme="dark"] .result-steps__icon {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .result-flow__done,
[data-theme="dark"] .result-status__check {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

[data-theme="dark"] .result-status {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

@media (max-width: 389px) {
  [data-theme="dark"] .result-status {
    background: transparent;
  }
}

.weekcal {
  --week-row: 30px;
  position: relative;
  padding: 14px 12px 16px;
  border: 1px solid rgba(196, 181, 253, 0.5);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(59, 22, 143, 0.10);
  color: #241c30;
}

.weekcal__board { display: none; }

.weekcal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.weekcal__chevs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #1c1824;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.weekcal__chevs svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: #9a93a6;
}

.weekcal__range {
  flex: none;
  white-space: nowrap;
  color: #8d8798;
  font-size: 0.78rem;
  font-weight: 600;
}

.weekcal__days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  text-align: center;
}

.weekcal__days li {
  display: grid;
  gap: 1px;
  padding: 6px 0 8px;
  border-radius: 12px;
}

.weekcal__days span {
  color: #9a93a6;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.weekcal__days strong {
  color: #241c30;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.weekcal__days .is-today {
  position: relative;
  background: rgba(140, 110, 230, 0.12);
}

.weekcal__days .is-today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #7c5ce0;
}

.weekcal__autos {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.weekcal__autos li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d8cff0;
  border-radius: 14px;
  background: #fbfaff;
  color: #17151f;
  box-shadow: none;
}

.weekcal__autos strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.weekcal__autos small {
  display: block;
  color: #2e8b6f;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
}

.weekcal__check,
.weekcal__tick {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2e8b6f;
  color: #ffffff;
}

.weekcal__check::after,
.weekcal__tick::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

.weekcal__check--pink,
.weekcal__tick--pink { background: #7c4fd6; }

.weekcal__timeline {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weekcal__timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 66px;
  border-left: 1.5px dotted rgba(156, 132, 210, 0.85);
}

.weekcal__timeline li {
  display: grid;
  grid-template-columns: 52px 14px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.weekcal__timeline li::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 8px;
  height: 8px;
  justify-self: center;
  border-radius: 50%;
  background: #8b6eea;
  box-shadow: 0 0 0 4px #f4f0ff;
}

.weekcal__when {
  grid-column: 1;
  grid-row: 1;
  color: #8d8798;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.weekcal__card {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #ddd8ea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
  color: #2f2448;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.weekcal__timeline .is-calls .weekcal__card {
  flex-wrap: wrap;
  border-color: #d8c7ee;
  background: #fcf8ff;
  color: #5c3c78;
}

.weekcal__timeline .is-focus .weekcal__card {
  min-height: 62px;
  border: 0;
  background: linear-gradient(135deg, #7c5cff 0%, #3b168f 100%);
  box-shadow: 0 18px 36px rgba(76, 31, 184, 0.24);
  color: #fff;
  font-size: 1rem;
}

.weekcal__timeline .is-focus svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.weekcal__faces {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.weekcal__faces i,
.weekcal__faces b {
  display: grid;
  width: 22px;
  height: 22px;
  margin-left: -6px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #efe6ff;
  color: #5c3c78;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
}

.weekcal__faces i:first-child { margin-left: 0; background: #e4d8f8; }
.weekcal__faces i:nth-child(2) { background: #efe6ff; color: #5c3c78; }

.weekcal__faces b {
  width: auto;
  margin-left: 4px;
  border: 0;
  background: transparent;
  color: #7c4fd6;
  font-size: 0.72rem;
}

@media (min-width: 360px) {
  .weekcal__autos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .weekcal__autos li { align-items: flex-start; padding: 8px; }
  .weekcal__autos strong { font-size: 0.75rem; }
}

@media (min-width: 768px) {
  .weekcal {
    --week-row: 36px;
    padding: 12px 12px 10px;
  }

  .weekcal__agenda {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .weekcal__board { display: block; }

  .weekcal__dow {
    display: grid;
    grid-template-columns: 40px repeat(5, minmax(0, 1fr));
    margin: 0 0 4px;
    text-align: center;
  }

  .weekcal__dow small {
    display: block;
    color: #9a93a6;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .weekcal__dow strong {
    display: block;
    color: #241c30;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
  }

  .weekcal__dow .is-today {
    position: relative;
    margin: -2px 6px 0;
    padding: 2px 0 8px;
    border-radius: 12px;
    background: rgba(140, 110, 230, 0.12);
  }

  .weekcal__dow .is-today::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: #7c5ce0;
  }

  .weekcal__body {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .weekcal__hours {
    display: grid;
    grid-template-rows: repeat(9, var(--week-row));
    color: #9a93a6;
    font-size: 0.6rem;
    font-weight: 700;
  }

  .weekcal__hours span { transform: translateY(-0.4em); }

  .weekcal__plane {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(9, var(--week-row));
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--week-row) - 1px),
      rgba(186, 168, 220, 0.38) calc(var(--week-row) - 1px),
      rgba(186, 168, 220, 0.38) var(--week-row)
    );
  }

  .weekcal__cols {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .weekcal__cols span + span { border-left: 1px solid rgba(186, 168, 220, 0.32); }
  .weekcal__cols .is-today { background: rgba(140, 110, 230, 0.08); }

  .weekcal__event {
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    grid-column: var(--c);
    grid-row: var(--r) / span var(--h, 1);
    min-width: 0;
    margin: 3px;
    padding: 3px 6px;
    overflow: hidden;
    border: 1px solid rgba(214, 198, 236, 0.7);
    border-radius: 10px;
    color: #6b46d6;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }

  .weekcal__event strong {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15;
  }

  .weekcal__event small {
    display: block;
    color: #2e8b6f;
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1.15;
  }

  .weekcal__event > span { min-width: 0; }
  .weekcal__event--wide { grid-column: var(--c) / span 2; }

  .weekcal__event--mint {
    border-color: #d8cff0;
    background: #fbfaff;
    color: #17151f;
  }

  .weekcal__event--lilac {
    border-color: #ddd8ea;
    background: #ffffff;
    color: #2f2448;
  }

  .weekcal__event--pink {
    flex-wrap: wrap;
    border-color: #d8c7ee;
    background: #fcf8ff;
    color: #5c3c78;
  }

  .weekcal__event--focus {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: 0;
    background: linear-gradient(135deg, #7c5cff 0%, #3b168f 100%);
    box-shadow: 0 18px 36px rgba(76, 31, 184, 0.24);
    color: #fff;
    font-size: 0.78rem;
    text-align: center;
  }

  .weekcal__event--focus svg {
    width: 12px;
    height: 12px;
  }

  .weekcal__event .weekcal__faces { margin-left: 0; }
  .weekcal__event .weekcal__faces i { width: 18px; height: 18px; font-size: 0.55rem; }
}

@media (min-width: 1100px) {
  .weekcal { --week-row: 32px; }
  .weekcal__event { font-size: 0.72rem; }
  .weekcal__event--focus { font-size: 0.84rem; }
}

.result-viz--week { container-type: inline-size; }

@container (max-width: 480px) {
  .weekcal__board { display: none; }

  .weekcal__agenda {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
}

[data-theme="dark"] .weekcal {
  border-color: rgba(196, 181, 253, 0.5);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(59, 22, 143, 0.10);
  color: #241c30;
}

[data-theme="dark"] .weekcal__chevs,
[data-theme="dark"] .weekcal__days strong,
[data-theme="dark"] .weekcal__dow strong { color: #241c30; }

[data-theme="dark"] .weekcal__range,
[data-theme="dark"] .weekcal__days span,
[data-theme="dark"] .weekcal__dow small,
[data-theme="dark"] .weekcal__when,
[data-theme="dark"] .weekcal__hours { color: #8d8798; }

[data-theme="dark"] .weekcal__days .is-today,
[data-theme="dark"] .weekcal__dow .is-today,
[data-theme="dark"] .weekcal__cols .is-today { background: rgba(167, 139, 250, 0.16); }

[data-theme="dark"] .weekcal__timeline li::before {
  background: #8b6eea;
  box-shadow: 0 0 0 4px #f4f0ff;
}

[data-theme="dark"] .weekcal__autos li,
[data-theme="dark"] .weekcal__event--mint {
  border-color: #d8cff0;
  background: #fbfaff;
  color: #17151f;
}

[data-theme="dark"] .weekcal__autos small,
[data-theme="dark"] .weekcal__event small { color: #2e8b6f; }

[data-theme="dark"] .weekcal__card,
[data-theme="dark"] .weekcal__event--lilac {
  border-color: #ddd8ea;
  background: #ffffff;
  color: #2f2448;
}

[data-theme="dark"] .weekcal__timeline .is-calls .weekcal__card,
[data-theme="dark"] .weekcal__event--pink {
  border-color: #d8c7ee;
  background: #fcf8ff;
  color: #5c3c78;
}

[data-theme="dark"] .weekcal__faces i { border-color: #fff; }
[data-theme="dark"] .weekcal__faces b { color: #7c4fd6; }

[data-theme="dark"] .weekcal__plane {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--week-row) - 1px),
    rgba(214, 198, 236, 0.14) calc(var(--week-row) - 1px),
    rgba(214, 198, 236, 0.14) var(--week-row)
  );
}

[data-theme="dark"] .weekcal__cols span + span { border-left-color: rgba(214, 198, 236, 0.14); }
