/* Website preview layout. The original standalone prototype is retained separately. */
html,
body.embedded-preview {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.embedded-preview .studio {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.embedded-preview .studio-intro,
.embedded-preview .studio-detail,
.embedded-preview .device-shadow {
  display: none;
}

.embedded-preview .device-stage {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.embedded-preview .phone {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* The parent iframe supplies the scaled, rounded screen boundary. Keep the
     app and its blurred sheets inside this local viewport during transitions. */
  overflow: hidden;
  contain: paint;
  clip-path: inset(0);
}

.embedded-preview .sheet-host { overflow: hidden; }

/* Sample contact photos; the functioning app supplies contact-synced images. */
.embedded-preview .avatar { position: relative; overflow: hidden; }
.embedded-preview .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Let scrolling continue into the website when the app reaches an edge. */
.embedded-preview .screen-viewport { overscroll-behavior-y: auto; }

/* Today keeps its week in view; the agenda scrolls inside the paper area below. */
.embedded-preview .phone { --today-banner-height: 139px; }
.embedded-preview .phone[data-current-screen=today] .sunset {
  height: calc(108px + var(--today-banner-height) + env(safe-area-inset-top));
}
.embedded-preview .phone[data-current-screen=today] .screen-viewport {
  overflow: hidden;
}
.embedded-preview .phone[data-current-screen=today] .screen-content {
  height: 100%;
  min-height: 0;
  padding: 0;
  animation: none;
}
.embedded-preview .today-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.embedded-preview .today-banner {
  flex: 0 0 var(--today-banner-height);
  height: var(--today-banner-height);
  margin: 0;
  padding: 3px 24px 16px;
}
.embedded-preview .today-banner .page-heading { font-size: 29px; }
.embedded-preview .today-banner .eyebrow { font-size: 9px; }
.embedded-preview .today-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 13px;
}
.embedded-preview .today-week .day-button {
  min-width: 0;
  min-height: 57px;
  padding: 7px 0 11px;
  gap: 5px;
  color: #fff6f3;
  border-radius: 19px;
  font-size: 14px;
  font-weight: 500;
}
.embedded-preview .today-week .day-button>span { font-size: 9px; }
.embedded-preview .today-week .day-button strong { font-weight: 500; }
.embedded-preview .today-week .day-button i { background: #ffe4d8; }
.embedded-preview .today-week .day-button.active {
  background: #fbfaf8;
  color: #7d5a74;
  box-shadow: 0 4px 9px -5px #6b405157;
}
.embedded-preview .today-week .day-button.active i { background: #b97c83; }
.embedded-preview .today-week .day-button:focus-visible {
  outline: 2px solid #fff6f3;
  outline-offset: 2px;
}
.embedded-preview .today-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 24px 26px;
  background: #fbfaf8;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-width: none;
  position: relative;
  scroll-behavior: smooth;
}
.embedded-preview .today-body::-webkit-scrollbar { display: none; }
.embedded-preview .today-body:focus-visible { outline: 2px solid #b69aa9; outline-offset: -3px; }
.embedded-preview .today-body>.section-heading { margin-top: 23px; }
.embedded-preview .today-body>.section-heading:first-child { margin-top: 0; }
.embedded-preview .today-body .agenda-open { gap: 12px; min-height: 122px; padding-bottom: 15px; }
.embedded-preview .today-body .agenda-time { min-width: 48px; }
.embedded-preview .today-body .agenda-time strong { font-size: 26px; }
.embedded-preview .today-body .agenda-open:after { left: 24px; top: 62px; height: 45px; }
.embedded-preview .today-body .agenda-open h2 { font-size: 18px; }
.embedded-preview .today-later { gap: 12px; margin-bottom: 18px; }
.embedded-preview .today-later .agenda-time strong { font-size: 21px; }
.embedded-preview .today-later h2 { font-size: 16px; }
.embedded-preview .today-later .row-meta { font-size: 11px; }
.embedded-preview .today-calendar-link { font-size: 11px; color: #7d5a74; padding: 7px 0; gap: 8px; }
.embedded-preview .today-calendar-link .ui-icon { width: 14px; height: 14px; }
.embedded-preview .today-empty { padding: 13px 0 24px; font-size: 11px; }
.embedded-preview .today-empty h3 { font-size: 16px; margin-bottom: 5px; }

@media (max-width: 320px) {
  .embedded-preview .today-banner { padding-inline: 20px; }
  .embedded-preview .today-body { padding-inline: 20px; }
  .embedded-preview .today-body .agenda-open { gap: 10px; }
  .embedded-preview .today-body .agenda-open h2 { font-size: 17px; }
  .embedded-preview .today-body .section-heading { font-size: 9px; letter-spacing: .7px; gap: 8px; }
  .embedded-preview .today-body .section-heading>span { font-size: 9px; }
}

@media (max-width: 280px) {
  .embedded-preview .app-header { left: 20px; right: 20px; }
  .embedded-preview .app-wordmark { width: 66px; }
  .embedded-preview .header-actions { gap: 3px; }
  .embedded-preview .notification-button { width: 32px; height: 36px; }
  .embedded-preview .context-button { padding-inline: 9px; gap: 5px; font-size: 11px; }
  .embedded-preview .today-body .agenda-question { font-size: 11px; gap: 6px; }
}

@media (max-height: 560px) {
  .embedded-preview .phone { --today-banner-height: 126px; }
  .embedded-preview .today-banner .page-heading { font-size: 27px; }
  .embedded-preview .today-week { margin-top: 10px; }
  .embedded-preview .today-week .day-button { min-height: 51px; padding-top: 5px; }
}
