@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/poppins-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/poppins-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/poppins-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/poppins-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Poppins", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --paper: #f6f6f6;
  --ink: #000;
  --muted: #686868;
  --scale: 1;
  --font-display: "Gurmukhi MN", Georgia, "Times New Roman", serif;
  --font-sans: "Poppins", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: #1d1d1d;
  color: var(--ink);
}

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

button {
  border: 0;
  cursor: pointer;
}

input {
  min-width: 0;
}

.viewport {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

.app-shell {
  position: relative;
  flex: 0 0 440px;
  width: 440px;
  min-width: 440px;
  height: 956px;
  overflow: hidden;
  border-radius: 44px;
  background: var(--paper);
  box-shadow: 0 24px 90px rgb(0 0 0 / 38%);
  transform: scale(var(--scale));
  transform-origin: top center;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  background: var(--paper);
}

.screen.is-active {
  display: block;
  animation: screen-in 180ms ease-out both;
}

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

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.status-bar {
  display: none;
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 440px;
  height: 59px;
  pointer-events: none;
}

.status-bar .status-time {
  position: absolute;
  top: 20px;
  left: 48px;
  width: 54px;
  height: 21px;
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: -.32px;
  text-align: center;
}

.status-bar > img {
  position: absolute;
  top: 23px;
  right: 42px;
  width: 78.401px;
  height: 13px;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 200px;
  height: 56px;
  padding: 16px 32px;
  border-radius: 40px;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  white-space: nowrap;
  transition: transform 140ms ease, opacity 140ms ease;
}

.primary-button:active,
.shutter-button:active,
.camera-flip-button:active,
.close-button:active,
.profile-save-button:active {
  transform: scale(.95);
}

.primary-button img {
  width: 20px;
  height: 19.404px;
  flex: 0 0 auto;
}

.plus-icon {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 22px;
}

.close-button {
  position: absolute;
  z-index: 25;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: #d9d9d9;
  transition: transform 120ms ease;
}

.close-button span {
  position: absolute;
  top: 20.5px;
  left: 14px;
  width: 16px;
  height: 3px;
  border-radius: 99px;
  background: #686868;
}

.close-button span:first-child { transform: rotate(45deg); }
.close-button span:last-child { transform: rotate(-45deg); }

/* Frames 1–2: splash and animated Record button */
.welcome-content {
  position: absolute;
  top: 350.643px;
  left: 50%;
  width: 227.509px;
  height: 455.714px;
  transform: translateX(-50%);
}

.welcome-illustration {
  position: absolute;
  top: 0;
  left: 0;
  width: 227.509px;
  height: 154.714px;
}

.welcome-main-cats {
  position: absolute;
  top: 0;
  left: 0;
  width: 221.687px;
  height: 154.311px;
}

.welcome-small-cat {
  position: absolute;
  top: 73.86px;
  left: 165.278px;
  width: 62.231px;
  height: 80.85px;
}

.welcome-content h1 {
  position: absolute;
  top: 218.714px;
  left: 0;
  width: 227.509px;
  height: 36px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 1.1px;
  text-align: center;
}

.welcome-button {
  position: absolute;
  top: 399.714px;
  left: 0;
  width: 227.509px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(.72) rotate(-3deg);
  gap: 0;
}

.welcome-button.is-revealed {
  opacity: 1;
  pointer-events: auto;
  animation: welcome-button-pop 760ms cubic-bezier(.2, 1.45, .38, 1) both,
    welcome-button-float 2.8s 900ms ease-in-out infinite;
}

@keyframes welcome-button-pop {
  0% { opacity: 0; transform: translateY(28px) scale(.68) rotate(-4deg); }
  54% { opacity: 1; transform: translateY(-7px) scale(1.06) rotate(2deg); }
  75% { transform: translateY(3px) scale(.98) rotate(-1deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes welcome-button-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-4px) rotate(-.6deg); }
  70% { transform: translateY(-1px) rotate(.5deg); }
}

/* Frames 3–5: profile editor */
.profile-edit-screen,
.profile-summary-screen,
.camera-screen,
.caption-screen {
  background: #fff;
}

.profile-edit-screen {
  background: var(--paper);
}

.profile-back-button {
  position: absolute;
  z-index: 24;
  top: 70px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
}

.profile-back-button img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.profile-edit-title {
  position: absolute;
  top: 73px;
  right: 24px;
  width: 190px;
  height: 38px;
  margin: 0;
  color: #292b2f;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 38px;
  text-align: right;
}

.profile-edit-form {
  position: absolute;
  top: 171px;
  left: 32px;
  width: 376px;
  height: 704px;
}

.profile-editor-avatar-button,
.summary-avatar-button {
  position: absolute;
  width: 110px;
  height: 110px;
  padding: 0;
  overflow: visible;
  border: 4.583px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2.292px 2.292px rgb(0 0 0 / 10%), 0 4.583px 3.437px rgb(0 0 0 / 10%);
}

.profile-editor-avatar-button {
  top: 0;
  left: 133px;
}

.profile-avatar-placeholder,
.profile-editor-avatar,
.summary-avatar-ring {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
}

.profile-avatar-placeholder {
  background-color: #e5e5e5;
  background-image:
    linear-gradient(45deg, #d4d4d4 25%, transparent 25%),
    linear-gradient(-45deg, #d4d4d4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d4d4d4 75%),
    linear-gradient(-45deg, transparent 75%, #d4d4d4 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.profile-editor-avatar,
.profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-editor-avatar[hidden] {
  display: none;
}

.camera-badge {
  position: absolute;
  z-index: 2;
  top: 68px;
  left: 68px;
  display: block;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.camera-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-fields {
  position: absolute;
  top: 174px;
  left: 0;
  width: 376px;
}

.profile-field {
  position: relative;
  width: 376px;
  height: 73px;
}

.profile-field + .profile-field {
  margin-top: 31px;
}

.profile-field input {
  position: absolute;
  top: 0;
  left: 0;
  width: 342px;
  height: 36px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  line-height: 30px;
}

.profile-field input::placeholder {
  color: #c4c4c4;
  font-weight: 400;
  opacity: 1;
}

.field-clear-button {
  position: absolute;
  top: 8px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 50%;
  background: #dedede;
  transition: background-color 160ms ease;
  overflow: hidden;
}

.field-clear-button:disabled {
  cursor: default;
}

.field-clear-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.field-clear-button:disabled img {
  opacity: .16;
}

.profile-field.has-value .field-clear-button {
  background: #000;
}

.sketch-underline {
  position: absolute;
  top: 38px;
  left: 0;
  width: 376px;
  height: 6px;
  background: url("./assets/profile-underline.svg") center / 100% 100% no-repeat;
}

.field-label {
  position: absolute;
  top: 49px;
  left: 0;
  height: 24px;
  color: #696969;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.profile-save-button {
  position: absolute;
  top: 575px;
  left: 156px;
  display: block;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transition: transform 120ms ease;
}

.profile-save-button img {
  position: absolute;
  top: -5px;
  left: -5px;
  display: block;
  width: 74px;
  height: 74px;
  object-fit: contain;
  opacity: .42;
  filter: drop-shadow(0 3px 3px rgb(0 0 0 / 12%));
  transition: opacity 180ms ease, filter 180ms ease;
}

.profile-save-button.is-complete img {
  opacity: 1;
  filter: drop-shadow(0 5px 5px rgb(0 0 0 / 16%));
  animation: profile-save-float 2.6s ease-in-out infinite;
}

@keyframes profile-save-float {
  0%, 100% { transform: translateY(0) scale(1); }
  48% { transform: translateY(-3px) scale(1.018); }
  72% { transform: translateY(-1px) scale(.997); }
}

.profile-error {
  position: absolute;
  top: 663px;
  left: 0;
  width: 376px;
  min-height: 20px;
  margin: 0;
  color: #ff1919;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

/* Frame 6: calculated profile card */
.profile-summary-actions {
  position: absolute;
  z-index: 5;
  top: 124px;
  right: 24px;
  display: flex;
  gap: 12px;
}

.profile-summary-action {
  display: block;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  transition: opacity 150ms ease, transform 120ms ease;
}

.profile-summary-action:active {
  transform: scale(.94);
}

.profile-summary-action:disabled {
  cursor: default;
  opacity: .42;
}

.profile-summary-action img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.profile-summary-card {
  position: absolute;
  top: 178px;
  left: 24px;
  width: 392px;
  height: 437px;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 24px;
  background: linear-gradient(rgb(202 202 202 / 18%), rgb(202 202 202 / 18%)), #fff;
  box-shadow: 0 4px 4px rgb(0 0 0 / 10%);
}

.profile-summary-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: url("./assets/profile-border.svg?v=3") center / 100% 100% no-repeat;
  pointer-events: none;
}

.days-with-me {
  position: absolute;
  top: 71px;
  left: 18px;
  width: 350px;
  height: 54px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 54px;
  text-align: center;
}

.days-with-me strong {
  font-weight: 700;
}

.summary-avatar-button {
  top: 164px;
  left: 138px;
}

.summary-avatar-ring {
  background: #ddd;
}

.profile-summary-card h2 {
  position: absolute;
  top: 283px;
  left: 93px;
  width: 200px;
  height: 42px;
  margin: 0;
  overflow: hidden;
  color: #1f2937;
  font-size: 24px;
  font-weight: 700;
  line-height: 42px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-meta {
  position: absolute;
  top: 347px;
  left: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 238px;
  height: 29px;
  margin: 0;
  color: #6b7280;
  line-height: 28px;
}

.summary-meta time {
  font-size: 16px;
}

.summary-meta span {
  font-size: 13.714px;
}

.profile-summary-close {
  top: 661px;
  left: 188px;
  width: 64px;
  height: 64px;
  overflow: visible;
  background: transparent;
}

.profile-summary-close img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* Frames 7 and 10–13: timeline */
.timeline-screen {
  background: var(--paper);
}

.pet-header {
  position: absolute;
  z-index: 30;
  top: 59px;
  left: 50%;
  width: 200px;
  height: 100px;
  transform: translateX(-50%);
}

.pet-profile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 200px;
  height: 100px;
  padding: 0;
  background: transparent;
}

.pet-name {
  display: block;
  width: 200px;
  height: 32px;
  overflow: hidden;
  color: #1f2937;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-avatar-button {
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: #ddd;
}

.records-gesture-zone {
  position: absolute;
  top: 145px;
  left: 0;
  width: 440px;
  height: 590px;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.card-stack {
  position: absolute;
  inset: 0;
  transform: translateY(0);
  transition: transform 220ms cubic-bezier(.22, .8, .25, 1);
}

.card-stack.is-dragging {
  transition: none;
  will-change: transform;
}

.card-stack.is-rebasing,
.card-stack.is-rebasing .memory-card {
  transition: none !important;
}

.memory-card {
  position: absolute;
  width: 400px;
  height: 305.751px;
  overflow: hidden;
  border-radius: 24px;
  transform-origin: top left;
  background: #e8e8e8;
  box-shadow: 0 6px 7px rgb(0 0 0 / 16%);
  transition: top 300ms cubic-bezier(.22, .8, .25, 1), left 300ms cubic-bezier(.22, .8, .25, 1), transform 300ms cubic-bezier(.22, .8, .25, 1), filter 300ms ease, opacity 180ms ease;
  -webkit-touch-callout: none;
}

.memory-card[data-level="0"] { cursor: grab; }

.memory-card:not([data-level="0"]) {
  pointer-events: none;
}

.memory-card.is-card-back .card-quote,
.memory-card.is-card-back .card-time,
.memory-card.is-card-back .card-caption,
.memory-card.is-card-back .card-photo {
  visibility: hidden;
}

.memory-card.is-incoming-card {
  opacity: 0;
}

.memory-card.card-entering {
  animation: card-pop 300ms cubic-bezier(.22, .9, .28, 1.08) both;
}

.card-stack.is-reordering {
  pointer-events: none;
}

.card-stack.is-reordering .memory-card {
  will-change: top, left, transform, filter;
}

@keyframes card-pop {
  from { transform: translateY(22px) scale(.97); opacity: 0; }
}

.card-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.card-quote {
  position: absolute;
  top: 39.28px;
  left: 21.66px;
  width: 31.319px;
  height: 27.875px;
  pointer-events: none;
}

.card-time,
.card-caption {
  position: absolute;
  left: 26.08px;
  width: 150px;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-sans);
  text-transform: uppercase;
}

.card-time {
  top: 127.78px;
  color: #565656;
  font-size: 11.959px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

.card-caption {
  top: 150.88px;
  display: -webkit-box;
  max-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 17.938px;
  font-weight: 400;
  line-height: 25px;
  text-align: left;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-caption:focus-visible {
  outline: 2px solid #4f7cff;
  outline-offset: 4px;
}

.card-photo {
  position: absolute;
  top: 33.29px;
  left: 192.02px;
  width: 179.378px;
  height: 239.171px;
  border-radius: 23.917px;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.empty-record-button {
  position: absolute;
  top: 124px;
  left: 100px;
  z-index: 3;
}

.record-counter {
  position: absolute;
  z-index: 20;
  right: 35px;
  width: 370px;
  height: 21px;
  font-family: var(--font-sans);
  font-size: 17.938px;
  font-weight: 400;
  line-height: 21px;
  text-align: right;
}

.timeline-record-button {
  position: absolute;
  z-index: 30;
  top: 767.376px;
  left: 120px;
  box-shadow: 0 7px 12px rgb(0 0 0 / 17%);
}

.timeline-screen.has-pager-deck .timeline-record-button {
  top: 790px;
}

.timeline-screen.is-empty .timeline-record-button {
  display: none;
}

.delete-overlay {
  position: absolute;
  z-index: 60;
  inset: 0;
  background: rgb(0 0 0 / 65%);
  animation: delete-overlay-in 140ms ease-out both;
}

.delete-overlay[hidden] {
  display: none;
}

.timeline-screen.delete-open .memory-card[data-level="0"] {
  z-index: 61 !important;
  pointer-events: none;
}

.timeline-screen.delete-open .record-counter {
  top: 568.221px !important;
}

.delete-menu-button {
  position: absolute;
  top: 629.221px;
  left: 242px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 178px;
  height: 60px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgb(255 255 255 / 85%);
  box-shadow: 0 0 2px rgb(0 0 0 / 8%), 0 12px 40px rgb(0 0 0 / 14%);
  color: #fc587b;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.delete-menu-button svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delete-menu-button:active { transform: scale(.97); }
.delete-menu-button:disabled { opacity: .55; }

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

/* Frame 8: camera */
.camera-title {
  position: absolute;
  top: 130px;
  left: 119px;
  width: 202px;
  height: 42px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 42px;
  text-align: center;
}

.camera-close {
  top: 130px;
  left: 24px;
}

.camera-layout {
  position: absolute;
  top: 212.014px;
  left: 24px;
  width: 392px;
  height: 632.667px;
}

.camera-viewfinder {
  position: absolute;
  top: 0;
  left: 0;
  width: 392px;
  height: 522.667px;
  overflow: hidden;
  border-radius: 24px;
  background: #ccc;
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  background-color: #ccc;
  background-image: radial-gradient(circle, rgb(255 255 255 / 78%) 1.55px, transparent 1.8px);
  background-position: 3px 3px;
  background-size: 24px 24px;
  transition: opacity 180ms ease;
}

.camera-viewfinder video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: none;
  transition: opacity 180ms ease;
}

.camera-viewfinder.has-video video { opacity: 1; }
.camera-viewfinder.is-mirrored video { transform: scaleX(-1); }
.camera-viewfinder.has-video .camera-placeholder { opacity: 0; }

.scan-corner {
  position: absolute;
  z-index: 5;
  width: 54px;
  height: 54px;
  pointer-events: none;
}

.scan-tl { top: 30.58px; left: 33.18px; }
.scan-tr { top: 30.58px; right: 33.18px; transform: scaleX(-1); }
.scan-bl { bottom: 30.58px; left: 33.18px; transform: scaleY(-1); }
.scan-br { right: 33.18px; bottom: 30.58px; transform: scale(-1, -1); }

.shutter-button {
  position: absolute;
  top: 568.667px;
  left: 164px;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  transition: transform 120ms ease, opacity 120ms ease;
}

.shutter-button[disabled] { opacity: .45; }
.shutter-button img { width: 64px; height: 64px; }

.camera-album-button {
  position: absolute;
  top: 580.632px;
  left: 40px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  background: transparent;
  transition: transform 120ms ease, opacity 120ms ease;
}

.camera-album-button:active { transform: scale(.94); }
.camera-album-button:disabled { opacity: .4; }

.camera-album-button img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.camera-flip-button {
  position: absolute;
  top: 580.632px;
  left: 307px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: 50%;
  background: transparent;
  transition: transform 220ms ease, opacity 120ms ease;
}

.camera-flip-button img {
  display: block;
  width: 32px;
  height: 32px;
}

.camera-flip-button:disabled {
  cursor: default;
  opacity: .35;
}

.camera-flip-button.is-switching { transform: rotate(180deg); }

/* Frames 9 and 14: caption create/edit */
.caption-form {
  position: absolute;
  top: 340px;
  left: 70px;
  width: 300px;
  height: 41.108px;
}

.caption-form input {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 31px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 17.688px;
  font-weight: 400;
  line-height: 30.323px;
}

.caption-form input::placeholder {
  color: #c4c4c4;
  opacity: 1;
}

.caption-form > img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 3.558px;
  pointer-events: none;
}

.caption-submit-button {
  position: absolute;
  top: -105px;
  right: 0;
  width: 64px;
  height: 52px;
  padding: 0;
  background: transparent;
  transition: transform 120ms ease, opacity 120ms ease;
}

.caption-submit-button:active {
  transform: scale(.95);
}

.caption-submit-button:disabled {
  cursor: default;
  opacity: .45;
}

.caption-submit-button img {
  display: block;
  width: 64px;
  height: 52px;
  object-fit: contain;
}

.toast {
  position: absolute;
  z-index: 100;
  bottom: 70px;
  left: 50%;
  max-width: 330px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgb(0 0 0 / 76%);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

button:focus-visible,
.records-gesture-zone:focus-visible {
  outline: 2px solid #4f7cff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 600px) {
  html,
  body,
  .viewport {
    background: var(--paper);
  }

  .viewport {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .viewport::-webkit-scrollbar { display: none; }

  .app-shell {
    border-radius: 0;
    box-shadow: none;
  }

  .welcome-content {
    top: 302px;
  }

  .profile-summary-actions {
    top: 96px;
  }
}
