:root {
  --paper: #f3efe6;
  --ink: #17231c;
  --green: #174534;
  --coral: #e7583e;
  --line: rgba(23, 35, 28, 0.18);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: radial-gradient(circle at 7% 90%, rgba(231, 88, 62, 0.08), transparent 20rem), var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[v-cloak] { display: none; }
#app {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 3.2vw;
}
.landing-app { display: block; padding: 0; overflow: hidden; }
.auth-splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 2rem;
  text-align: center;
  background: var(--paper);
}
.auth-splash .brand { position: fixed; top: 2rem; left: 3.2vw; }
.auth-splash .loading-mark { margin: auto; }
.landing-nav {
  position: relative;
  z-index: 10;
  width: min(1440px, 100%);
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  padding: 0 clamp(1.2rem, 5vw, 5.5rem);
}
.landing-actions { display: flex; align-items: center; gap: 0.6rem; }
.landing-login, .landing-register, .hero-primary, .landing-cta button {
  border-radius: 99px;
  cursor: pointer;
  font-weight: 760;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.landing-integrations-link {
  margin-right: 0.35rem;
  color: rgba(23, 35, 28, 0.62);
  font-size: 0.73rem;
  font-weight: 720;
  text-decoration: none;
}
.landing-integrations-link:hover { color: var(--green); }
.landing-login {
  padding: 0.75rem 1.15rem;
  color: var(--green);
  border: 0;
  background: transparent;
}
.landing-login:hover { background: rgba(23, 69, 52, 0.08); }
.landing-register {
  padding: 0.75rem 1.25rem;
  color: white;
  border: 1px solid var(--green);
  background: var(--green);
}
.landing-register:hover, .hero-primary:hover, .landing-cta button:hover { transform: translateY(-2px); background: #0f3527; }
.landing-main { display: block; padding: 0; }
.landing-hero {
  width: min(1440px, 100%);
  min-height: calc(100svh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  margin: auto;
  padding: 2rem clamp(1.2rem, 5vw, 5.5rem) 6rem;
}
.hero-copy { position: relative; z-index: 2; max-width: 670px; }
.hero-kicker, .section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.68rem;
  font-weight: 760;
}
.hero-kicker { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 1.7rem; color: rgba(23, 35, 28, 0.62); }
.hero-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(231, 88, 62, 0.12); }
.landing-hero h1 {
  max-width: none;
  color: var(--green);
  font-size: clamp(3.8rem, 6.4vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}
.hero-intro {
  max-width: 590px;
  margin: 2rem 0 0;
  color: rgba(23, 35, 28, 0.66);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.1rem; }
.hero-primary {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  padding: 0.95rem 1.1rem 0.95rem 1.35rem;
  color: white;
  border: 0;
  background: var(--green);
}
.hero-primary span, .landing-cta button span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.hero-actions a { color: var(--green); font-size: 0.8rem; font-weight: 720; text-underline-offset: 0.3rem; }
.hero-note { margin: 1.1rem 0 0; color: rgba(23, 35, 28, 0.44); font-size: 0.67rem; }
.hero-visual { position: relative; min-height: 660px; isolation: isolate; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 3% -12% -4% 4%;
  z-index: -3;
  border-radius: 52% 48% 49% 51% / 48% 42% 58% 52%;
  background: #dfe7d8;
  transform: rotate(-4deg);
}
.hero-orbit { position: absolute; z-index: -2; border: 1px solid rgba(23, 69, 52, 0.16); border-radius: 50%; }
.orbit-one { inset: 2% -8% 3% 0; transform: rotate(12deg); }
.orbit-two { inset: 12% -2% 10% 8%; transform: rotate(-16deg); }
.hero-photo { position: absolute; margin: 0; overflow: hidden; background: #d4d9ce; box-shadow: 0 28px 70px rgba(23, 35, 28, 0.2); }
.hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-photo-main { top: 6%; right: 3%; width: 78%; height: 78%; border-radius: 48% 48% 8px 8px; }
.hero-photo-main::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(7, 18, 12, 0.72)); }
.hero-photo-main figcaption {
  position: absolute;
  z-index: 2;
  left: 2rem;
  right: 2rem;
  bottom: 1.8rem;
  display: grid;
  gap: 0.35rem;
  color: white;
}
.hero-photo-main figcaption span { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.62rem; }
.hero-photo-main figcaption strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.hero-photo-small { left: -2%; bottom: 4%; z-index: 2; width: 30%; height: 32%; border: 8px solid var(--paper); border-radius: 50% 50% 5px 5px; }
.memory-card {
  position: absolute;
  right: -1%;
  bottom: 3%;
  z-index: 3;
  width: 210px;
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  color: white;
  border-radius: 5px;
  background: var(--green);
  box-shadow: 0 16px 35px rgba(23, 69, 52, 0.25);
}
.memory-card span { text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.56rem; opacity: 0.68; }
.memory-card strong { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.memory-card em { font-size: 0.65rem; font-style: normal; opacity: 0.62; }
.source-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(23, 35, 28, 0.1);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 9px 28px rgba(23, 35, 28, 0.14);
  backdrop-filter: blur(12px);
  font-size: 0.66rem;
  font-weight: 720;
}
.source-chip i { width: 26px; height: 26px; display: grid; place-items: center; color: white; border-radius: 50%; background: #4285f4; font-style: normal; }
.source-chip b { width: 18px; height: 18px; display: grid; place-items: center; color: white; border-radius: 50%; background: #3b8a5e; font-size: 0.55rem; }
.source-google { top: 7%; left: -5%; }
.source-yandex { top: 23%; right: -5%; }
.source-yandex i { color: var(--ink); background: #ffd633; }
.source-vk { left: 3%; bottom: 31%; }
.source-vk i { background: #2787f5; }
.source-vk b { color: var(--green); background: #e5eee7; }
.features-section { padding: clamp(5rem, 10vw, 10rem) clamp(1.2rem, 5vw, 5.5rem); background: var(--green); color: white; }
.section-heading { width: min(900px, 100%); margin: 0 auto clamp(3rem, 6vw, 5.5rem); text-align: center; }
.section-kicker { margin: 0 0 1.2rem; color: #f18b76; }
.section-heading h2, .landing-cta h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(3rem, 6vw, 6rem); font-weight: 400; line-height: 0.94; letter-spacing: -0.055em; text-wrap: balance; }
.section-heading > p:last-child { max-width: 600px; margin: 1.5rem auto 0; color: rgba(255, 255, 255, 0.62); line-height: 1.65; }
.feature-grid { width: min(1250px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); margin: auto; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.feature-grid article { position: relative; min-height: 310px; padding: 2rem clamp(1.2rem, 3vw, 2.8rem) 1rem; border-right: 1px solid rgba(255, 255, 255, 0.18); }
.feature-grid article:last-child { border-right: 0; }
.feature-number { position: absolute; top: 2rem; right: 1.5rem; color: rgba(255, 255, 255, 0.3); font-size: 0.64rem; letter-spacing: 0.14em; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 4rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; font-family: Georgia, serif; font-size: 1.2rem; }
.feature-grid h3 { margin: 0 0 1rem; font-family: Georgia, serif; font-size: clamp(1.6rem, 2.5vw, 2.25rem); font-weight: 400; }
.feature-grid p { max-width: 320px; margin: 0; color: rgba(255, 255, 255, 0.58); font-size: 0.86rem; line-height: 1.65; }
.integrations-section {
  padding: clamp(5.5rem, 10vw, 10rem) clamp(1.2rem, 5vw, 5.5rem);
  background: #e9e4d9;
}
.integrations-heading {
  width: min(1250px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: clamp(2rem, 8vw, 8rem);
  margin: auto;
}
.integrations-heading .section-kicker { color: var(--coral); }
.integrations-heading h2 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: clamp(3rem, 5.5vw, 5.6rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
}
.integrations-heading > p {
  max-width: 470px;
  margin: 0 0 0.4rem;
  color: rgba(23, 35, 28, 0.62);
  font-size: 0.95rem;
  line-height: 1.75;
}
.integration-cards {
  width: min(1250px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: clamp(3rem, 6vw, 5.5rem) auto 0;
}
.integration-card {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  border: 1px solid rgba(23, 35, 28, 0.11);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.56);
}
.integration-card-available::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -95px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(23, 69, 52, 0.1);
  border-radius: 50%;
}
.integration-card-next { color: white; background: var(--green); }
.integration-card-top { display: flex; align-items: center; justify-content: space-between; }
.integration-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 35, 28, 0.1);
  border-radius: 50%;
  background: white;
}
.integration-logo img { width: 66%; height: 66%; object-fit: contain; }
.integration-logo-vk { color: white; border-color: transparent; background: #2787f5; font-size: 1.1rem; font-weight: 800; }
.integration-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(23, 35, 28, 0.56);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.58rem;
  font-weight: 780;
}
.integration-status i { width: 6px; height: 6px; border-radius: 50%; background: #3b8a5e; box-shadow: 0 0 0 4px rgba(59, 138, 94, 0.1); }
.integration-card-next .integration-status { color: rgba(255, 255, 255, 0.55); }
.integration-card h3 { margin: 0 0 0.8rem; font-family: Georgia, serif; font-size: clamp(1.8rem, 2.7vw, 2.6rem); font-weight: 400; }
.integration-card p { max-width: 320px; margin: 0; color: rgba(23, 35, 28, 0.58); font-size: 0.82rem; line-height: 1.65; }
.integration-card-next p { color: rgba(255, 255, 255, 0.58); }
.integration-card-number { position: absolute; right: 1.5rem; bottom: 1.25rem; color: rgba(23, 35, 28, 0.22); font-size: 0.62rem; letter-spacing: 0.12em; }
.integration-card-next .integration-card-number { color: rgba(255, 255, 255, 0.25); }
.integration-privacy {
  width: min(1250px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  border-top: 1px solid rgba(23, 35, 28, 0.16);
}
.integration-privacy p { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.85rem; margin: 0; padding: 1.5rem 2rem 0 0; color: rgba(23, 35, 28, 0.52); font-size: 0.72rem; line-height: 1.55; }
.integration-privacy p > span { grid-row: 1 / 3; color: var(--coral); font-size: 0.58rem; letter-spacing: 0.1em; }
.integration-privacy strong { color: var(--ink); font-size: 0.76rem; }
.landing-cta { padding: clamp(6rem, 12vw, 11rem) 1.2rem; text-align: center; background: radial-gradient(circle at 50% 50%, rgba(231, 88, 62, 0.1), transparent 23rem); }
.landing-cta > p { margin: 0 0 1.5rem; color: var(--coral); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.65rem; font-weight: 760; }
.landing-cta h2 { color: var(--green); }
.landing-cta button { display: inline-flex; align-items: center; gap: 1.3rem; margin-top: 2.3rem; padding: 0.9rem 1rem 0.9rem 1.3rem; color: white; border: 0; background: var(--green); }
.landing-footer {
  width: min(1440px, calc(100% - 2.4rem));
  min-height: 100px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin: auto;
  padding: 0 clamp(0rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}
.landing-footer > p:last-child { justify-self: end; }
.topbar {
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  width: fit-content;
  color: var(--green);
  text-decoration: none;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  font-weight: 760;
  letter-spacing: -0.09em;
}
.brand-dot {
  display: inline-block;
  width: 0.25em;
  height: 0.25em;
  margin-left: 0.08em;
  border-radius: 50%;
  background: var(--coral);
}
.day-label, .note-label, .eyebrow, .drawer-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 750;
}
.day-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
}
.day-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(231, 88, 62, 0.12);
}
.topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.account-button, .account-email {
  max-width: 220px;
  overflow: hidden;
  padding: 0.62rem 0.9rem;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-button:hover { color: white; background: var(--green); }
.account-email { display: block; font-size: 0.7rem; }
.logout-button {
  padding: 0.62rem 0.2rem;
  color: rgba(23, 35, 28, 0.58);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
}
.logout-button:hover { color: var(--coral); }
.sources-button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  color: var(--ink);
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.sources-button:hover { background: #fff; }
.sources-button b {
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--green);
  border-radius: 50%;
  font-size: 0.72rem;
}
.source-avatars { display: flex; }
.source-avatars i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-right: -6px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: white;
  background: #4285f4;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 800;
}
.source-avatars i:nth-child(2) { background: #e7bb18; color: var(--ink); }
.source-avatars i:nth-child(3) { background: var(--coral); }
main { display: flex; flex-direction: column; justify-content: center; padding: 4.2vh 0 2.5vh; }
.memory-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 15vw);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: stretch;
}
.photo-shell { position: relative; min-width: 0; }
.photo-frame {
  position: relative;
  height: min(62vh, 690px);
  min-height: 410px;
  margin: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #dcd8cf;
  box-shadow: 0 26px 70px rgba(23, 35, 28, 0.14);
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
}
.photo-scrim {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgba(7, 18, 12, 0.76));
}
figcaption {
  position: absolute;
  left: clamp(1.6rem, 4vw, 4.8rem);
  right: clamp(1.6rem, 12vw, 12rem);
  bottom: clamp(1.8rem, 4.4vw, 4.5rem);
  color: white;
}
.eyebrow { margin: 0 0 0.8rem; color: rgba(255, 255, 255, 0.78); }
h1 {
  max-width: 850px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5.7rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.caption {
  max-width: 580px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.9rem, 1.15vw, 1.08rem);
  line-height: 1.55;
}
.nav-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(10, 27, 18, 0.22);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: 160ms ease;
}
.nav-button:hover { color: var(--ink); background: white; transform: scale(1.06); }
.nav-prev { left: 1rem; }
.nav-next { right: 1rem; }
.fullscreen-button {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.72rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 99px;
  background: rgba(10, 27, 18, 0.24);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.fullscreen-button:hover { color: var(--ink); background: white; transform: translateY(-1px); }
.fullscreen-button span { font-size: 1.05rem; line-height: 1; }
.fullscreen-button em {
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.chrome-toggle-button {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.72rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 99px;
  background: rgba(10, 27, 18, 0.24);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}
.chrome-toggle-button:hover { color: var(--ink); background: white; transform: translateY(-1px); }
.chrome-toggle-button span { font-size: 0.78rem; line-height: 1; }
.chrome-toggle-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.chrome-toggle-button em {
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.counter {
  position: absolute;
  top: 1.3rem;
  right: 1.4rem;
  z-index: 3;
  color: white;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}
.counter span { color: rgba(255,255,255,.58); }
.memory-note {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0 0.3rem;
}
.note-label { margin: 0 0 0.8rem; color: rgba(23,35,28,.5); }
.note-date, .note-location {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  line-height: 1.05;
}
.note-rule { width: 100%; height: 1px; margin: 2.2rem 0; background: var(--line); }
.note-hint {
  margin: auto 0 0;
  color: rgba(23, 35, 28, 0.56);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
}
.playback { margin-top: 1.2rem; }
.progress-track { height: 2px; overflow: hidden; background: var(--line); }
.progress-track span { height: 100%; display: block; background: var(--coral); transition: width 100ms linear; }
.playback-row { min-height: 54px; display: flex; align-items: center; gap: 0.8rem; }
.playback-row p { margin: 0; color: rgba(23,35,28,.58); font-size: 0.72rem; }
.play-button {
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 0.62rem;
}
.thumbs { display: flex; gap: 0.35rem; margin-left: auto; }
.thumbs button {
  width: 42px;
  height: 29px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  opacity: 0.5;
  cursor: pointer;
}
.thumbs button.active { border-color: var(--coral); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: rgba(23,35,28,.48);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}
footer p { margin: 0; }
footer span { padding: 0 0.5rem; }
.privacy::before { content: "●"; padding-right: 0.5rem; color: #3b8a5e; font-size: 0.45rem; vertical-align: 0.15rem; }
.loading-card {
  min-height: min(62vh, 690px);
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  border: 1px solid var(--line);
}
.loading-mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: auto;
  color: white;
  border-radius: 50%;
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 2rem;
  animation: breathe 1.5s ease-in-out infinite;
}
.loading-card p { color: rgba(23,35,28,.55); }
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  background: rgba(11, 22, 16, 0.42);
  backdrop-filter: blur(4px);
}
.sources-drawer {
  width: min(520px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(10,20,14,.2);
}
.drawer-close {
  float: right;
  width: 42px;
  height: 42px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}
.drawer-kicker { margin: 0 0 1rem; color: var(--coral); }
.sources-drawer h2 {
  max-width: 420px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.drawer-intro { margin: 1.5rem 0 2.5rem; color: rgba(23,35,28,.62); line-height: 1.6; }
.sources-drawer ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sources-drawer li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.integration-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  overflow: hidden;
  border: 1px solid rgba(23,35,28,.1);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}
.integration-mark img { width: 70%; height: 70%; object-fit: contain; }
.sources-drawer strong, .sources-drawer small { display: block; }
.sources-drawer strong { font-size: 0.9rem; }
.sources-drawer small { margin-top: 0.25rem; color: rgba(23,35,28,.52); }
.sources-drawer li button {
  padding: 0.5rem 0.8rem;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
}
.sources-drawer li em { color: #3b8a5e; font-size: 0.7rem; font-style: normal; font-weight: 700; }
.drawer-footnote { margin: 2rem 0 0; color: rgba(23,35,28,.48); font-size: 0.7rem; line-height: 1.6; }
.provider-attribution a { color: inherit; text-underline-offset: 0.16rem; }
.registration-form { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
.registration-form label { display: grid; gap: 0.55rem; }
.registration-form label span { font-size: 0.72rem; font-weight: 750; }
.registration-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: rgba(255, 255, 255, 0.55);
}
.registration-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 69, 52, 0.1); }
.registration-error { margin: 0; color: #a52d20; font-size: 0.74rem; line-height: 1.5; }
.registration-submit {
  min-height: 48px;
  padding: 0.8rem 1rem;
  color: white;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  cursor: pointer;
  font-weight: 750;
}
.registration-submit:disabled { cursor: wait; opacity: 0.55; }
.auth-switch {
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem;
  color: var(--green);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 720;
}
.auth-switch:hover { text-decoration: underline; text-underline-offset: 0.2rem; }
.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  padding: 0.85rem 1.1rem;
  color: white;
  border-radius: 4px;
  background: var(--ink);
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
  font-size: 0.78rem;
}
.memory-enter-active, .memory-leave-active { transition: opacity 260ms ease, transform 260ms ease; }
.memory-enter-from { opacity: 0; transform: translateX(12px); }
.memory-leave-to { opacity: 0; transform: translateX(-12px); }
.drawer-enter-active, .drawer-leave-active { transition: opacity 220ms ease; }
.drawer-enter-active .sources-drawer, .drawer-leave-active .sources-drawer { transition: transform 220ms ease; }
.drawer-enter-from, .drawer-leave-to { opacity: 0; }
.drawer-enter-from .sources-drawer, .drawer-leave-to .sources-drawer { transform: translateX(100%); }

body.zanovo-fullscreen { overflow: hidden; }
#app.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  display: block;
  padding: 0;
  background: #07120c;
}
#app.is-fullscreen .topbar,
#app.is-fullscreen .memory-note,
#app.is-fullscreen .playback,
#app.is-fullscreen footer { display: none; }
#app.is-fullscreen main,
#app.is-fullscreen .memory-stage,
#app.is-fullscreen .photo-shell {
  width: 100%;
  height: 100%;
  padding: 0;
}
#app.is-fullscreen .memory-stage { display: block; }
#app.is-fullscreen .photo-frame {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  box-shadow: none;
}
#app.is-fullscreen .fullscreen-button {
  top: 1.4rem;
  left: 1.4rem;
}
#app.is-fullscreen .chrome-toggle-button {
  right: 1.4rem;
  bottom: 1.4rem;
}
#app.is-fullscreen .fullscreen-button em { display: none; }
#app.is-fullscreen .counter { top: 1.7rem; }
#app.is-fullscreen .photo-scrim,
#app.is-fullscreen figcaption,
#app.is-fullscreen .nav-button,
#app.is-fullscreen .fullscreen-button,
#app.is-fullscreen .counter {
  transition: opacity 180ms ease;
}
#app.is-fullscreen.hide-fullscreen-chrome .photo-scrim,
#app.is-fullscreen.hide-fullscreen-chrome figcaption,
#app.is-fullscreen.hide-fullscreen-chrome .nav-button,
#app.is-fullscreen.hide-fullscreen-chrome .fullscreen-button,
#app.is-fullscreen.hide-fullscreen-chrome .counter {
  opacity: 0;
  pointer-events: none;
}

@keyframes breathe { 50% { transform: scale(.92); opacity: .72; } }
@media (max-width: 820px) {
  #app { padding: 0 1rem; }
  #app.landing-app { padding: 0; }
  .landing-nav { min-height: 74px; padding-inline: 1rem; }
  .landing-nav .brand { font-size: 1.75rem; }
  .landing-login { padding-inline: 0.7rem; }
  .landing-register { padding: 0.65rem 0.85rem; }
  .landing-hero { min-height: auto; grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 1rem 5rem; }
  .landing-hero h1 { font-size: clamp(3.45rem, 17vw, 5.6rem); }
  .hero-intro { font-size: 0.96rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.1rem; }
  .hero-visual { min-height: 510px; margin: 0 0.5rem; }
  .hero-photo-main { width: 86%; height: 76%; right: 2%; }
  .hero-photo-small { left: -3%; width: 36%; height: 30%; }
  .source-google { left: -3%; }
  .source-yandex { top: 20%; right: -4%; }
  .source-vk { display: none; }
  .memory-card { right: -2%; bottom: 0; width: 185px; }
  .features-section { padding-inline: 1rem; }
  .feature-grid { grid-template-columns: 1fr; border-top: 0; }
  .feature-grid article { min-height: 250px; border-top: 1px solid rgba(255,255,255,.18); border-right: 0; }
  .feature-icon { margin-bottom: 2.8rem; }
  .integrations-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .integrations-heading > p { font-size: 0.88rem; }
  .integration-cards { grid-template-columns: 1fr; }
  .integration-card { min-height: 285px; }
  .integration-privacy { grid-template-columns: 1fr; }
  .integration-privacy p { border-bottom: 1px solid rgba(23, 35, 28, 0.1); padding: 1.25rem 0; }
  .landing-footer { min-height: 130px; grid-template-columns: 1fr auto; gap: 0.5rem; align-content: center; }
  .landing-footer > p:first-of-type { display: none; }
  .topbar { min-height: 76px; grid-template-columns: 1fr auto; }
  .day-label { display: none; }
  .sources-button > span:not(.source-avatars) { display: none; }
  .topbar-actions { gap: 0.4rem; }
  .account-button, .account-email { max-width: 100px; padding-inline: 0.65rem; }
  .logout-button { display: none; }
  main { padding-top: 1rem; }
  .memory-stage { display: block; }
  .photo-frame { height: 67svh; min-height: 430px; border-radius: 3px; }
  figcaption { left: 1.4rem; right: 1.4rem; bottom: 2rem; }
  h1 { font-size: clamp(2.35rem, 11vw, 4.5rem); }
  .caption { max-width: 90%; font-size: 0.86rem; }
  .memory-note { display: none; }
  .nav-button { top: auto; bottom: 1.3rem; width: 42px; height: 42px; }
  .nav-prev { left: auto; right: 4.7rem; }
  .nav-next { right: 1.2rem; }
  .fullscreen-button { top: 0.9rem; left: 0.9rem; }
  .fullscreen-button em { display: none; }
  .chrome-toggle-button em { display: none; }
  .photo-scrim { inset: 20% 0 0; }
  .playback { margin-top: 0.8rem; }
  .thumbs { display: none; }
  footer { min-height: 44px; justify-content: center; }
  footer p:first-child { display: none; }
}
@media (max-width: 520px) {
  .landing-integrations-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
