:root {
  color-scheme: light;
  --ink: #151515;
  --soft-ink: #55504b;
  --muted: #817b73;
  --line: #ebe5dc;
  --paper: #f8f4ee;
  --surface: #fffdf9;
  --chip: #f0eae1;
  --blue: #006aff;
  --shadow: 0 14px 34px rgba(36, 28, 20, .08);
  --safe-top: env(safe-area-inset-top, 0px);
  --bar-height: calc(82px + var(--safe-top));
  --tabs-height: 62px;
  --search-height: 72px;
  --reader-bar-height: calc(88px + var(--safe-top));
  --tabs-sticky-top: var(--bar-height);
  --font-main: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --desktop-note-bg: #fff;
  --desktop-note-border: var(--line);
  --desktop-note-text: var(--soft-ink);
  --share-modal-bg: #fffdf9;
  --share-modal-text: #151515;
  --share-modal-border: #151515;
  --share-modal-button-bg: #151515;
  --share-modal-button-text: #ffffff;
  --reader-share-icon-size: 18px;
  --new-badge-size: 34px;
  --new-badge-color: #006aff;
  --new-badge-color-hue: 210deg;
  --new-badge-color-filter: hue-rotate(210deg) saturate(1.35);
  --new-badge-mask: url("icons/new-badge.png");
  font-family: var(--font-main);
}

.native-app {
  --bar-height: calc(78px + var(--safe-top));
  --tabs-height: 56px;
  --search-height: 64px;
  --reader-bar-height: calc(86px + var(--safe-top));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

body.home-header-condensed {
  --tabs-sticky-top: var(--safe-top);
}

body.search-open {
  --tabs-sticky-top: calc(var(--bar-height) + var(--search-height));
}

body.reader-open,
body.reader-closing,
body.notification-open,
body.share-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell,
.reader-view {
  width: 100%;
  max-width: 780px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  transition: transform .32s cubic-bezier(.22, .61, .36, 1), opacity .26s ease;
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--surface);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.app-splash.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.app-splash[hidden] {
  display: none;
}

.app-splash img {
  width: min(72vw, 360px);
  max-height: min(76dvh, 620px);
  object-fit: contain;
  animation: splash-soft-in .36s cubic-bezier(.22, .61, .36, 1);
}

@keyframes splash-soft-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-shell {
  padding: 0 18px 34px;
}

body.reader-open .app-shell {
  opacity: .88;
  transform: translateX(-18%);
}

.topbar,
.reader-topbar {
  z-index: 20;
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: var(--bar-height);
  background: var(--surface);
  transition: transform .24s ease, box-shadow .24s ease;
  will-change: transform;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  width: min(780px, 100%);
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0;
  padding: max(18px, calc(env(safe-area-inset-top) + 12px)) 18px 10px;
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
  box-shadow: 0 1px 0 var(--line);
}

.native-app .topbar {
  gap: 10px;
  padding: max(14px, calc(var(--safe-top) + 10px)) 16px 9px;
}

.native-app body.home-header-condensed {
  --tabs-sticky-top: var(--bar-height);
}

.native-app .topbar,
.native-app body.home-header-condensed .topbar {
  position: sticky;
  left: auto;
  width: 100%;
  transform: none;
}

body.home-header-condensed .topbar {
  box-shadow: none;
  transform: translate(-50%, calc(-100% - 1px));
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.brand-mark.has-image {
  border-color: transparent;
  color: transparent;
}

html.app-config-pending .brand-mark,
html.app-config-pending .brand-copy h1,
html.app-config-pending .brand-title-image {
  visibility: hidden;
}

html.app-config-pending .brand-copy {
  min-height: 54px;
}

.native-app .brand-mark,
.native-app .icon-button {
  width: 42px;
  height: 42px;
}

.brand-copy {
  min-width: 0;
}

.brand-title-image {
  display: block;
  width: auto;
  max-width: min(330px, 100%);
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.brand-title-image[hidden] {
  display: none;
}

.reader-date {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.brand-copy h1,
.reader-topbar h2 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.back-button,
.star-button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-button {
  width: 45px;
  height: 45px;
  border-radius: 999px;
}

.icon-button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.install-button {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: min(720px, calc(100% - 28px));
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(21, 21, 21, .16);
  padding: 0 18px;
  font-size: .88rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
}

.install-button[hidden] {
  display: none;
}

.install-button img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.app-exit-toast {
  position: fixed;
  left: 50%;
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 200;
  max-width: min(360px, calc(100% - 44px));
  border-radius: 999px;
  background: rgba(21, 21, 21, .9);
  color: #fff;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
}

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

body.has-install-banner .app-shell,
body.has-install-banner .reader-view {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.search-panel {
  display: grid;
  position: fixed;
  top: var(--bar-height);
  left: 50%;
  z-index: 21;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  width: min(780px, 100%);
  max-height: 0;
  margin: 0;
  padding: 0 18px;
  overflow: hidden;
  border-bottom: 1px solid transparent;
  background: var(--surface);
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: max-height .24s ease, padding .24s ease, opacity .2s ease, transform .2s ease;
}

.native-app .search-panel {
  position: sticky;
  top: var(--bar-height);
  left: auto;
  width: 100%;
  height: 0;
  max-height: none;
  transform: none;
}

.search-panel.is-open {
  max-height: var(--search-height);
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom-color: var(--line);
  opacity: 1;
  transform: translate(-50%, 0);
}

.native-app .search-panel.is-open {
  height: var(--search-height);
  max-height: none;
  padding-top: 10px;
  padding-bottom: 10px;
  transform: none;
}

.search-field {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f1eee9;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
}

.text-button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--soft-ink);
  font-weight: 850;
  cursor: pointer;
}

.native-app .search-field,
.native-app .text-button {
  min-height: 44px;
}

.suggestions {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.suggestion-button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--chip);
  color: var(--soft-ink);
  padding: 0 12px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.feed-status {
  min-height: 35px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
}

.feed-status[hidden] {
  display: none;
}

.app-header-image {
  display: block;
  width: 100%;
  max-height: 180px;
  margin: 0 0 12px;
  border-radius: 18px;
  object-fit: cover;
}

.app-header-image[hidden] {
  display: none;
}

.push-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 10px 12px;
  color: var(--soft-ink);
  font-size: .9rem;
  font-weight: 760;
}

.push-cta[hidden] {
  display: none;
}

.desktop-app-note {
  display: none;
}

.push-button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 0 12px;
  font-size: .84rem;
  font-weight: 900;
  cursor: pointer;
}

.push-button:disabled {
  opacity: .64;
  cursor: wait;
}

.feed-tabs {
  position: fixed;
  left: 50%;
  top: var(--tabs-sticky-top);
  z-index: 19;
  display: grid;
  grid-template-columns: 1fr 1fr 52px;
  gap: 8px;
  width: min(780px, 100%);
  height: var(--tabs-height);
  min-height: var(--tabs-height);
  margin: 0;
  padding: 8px 18px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transform: translateX(-50%);
  transition: top .24s ease, box-shadow .24s ease;
  box-shadow: 0 1px 0 var(--line);
}

.native-app .feed-tabs {
  position: sticky;
  left: auto;
  width: 100%;
  gap: 8px;
  padding: 7px 14px 8px;
  transform: none;
  background: var(--surface);
  z-index: 30;
}

body.home-header-condensed .feed-tabs {
  box-shadow: 0 10px 22px rgba(36, 28, 20, .07);
}

.app-shell main {
  padding-top: calc(var(--bar-height) + var(--tabs-height) + 10px);
}

body.search-open .app-shell main {
  padding-top: calc(var(--bar-height) + var(--search-height) + var(--tabs-height) + 10px);
}

.native-app .app-shell main,
.native-app body.search-open .app-shell main {
  padding-top: 0;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--soft-ink);
  font-weight: 900;
  cursor: pointer;
}

.native-app .tab-button {
  gap: 7px;
  min-height: 40px;
  font-size: clamp(.9rem, 3.6vw, 1rem);
}

.tab-button img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.native-app .tab-button img {
  width: 18px;
  height: 18px;
}

.tab-button.is-active {
  background: var(--ink);
  color: #fff;
}

.notification-tab {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

.native-app .notification-tab {
  min-height: 40px;
}

.notification-tab img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.notification-tab.is-active {
  border-color: var(--line);
  background: #fff;
  box-shadow: none;
}

.notification-tab.is-denied {
  border-color: var(--line);
  background: #fff;
}

.notification-tab:disabled {
  opacity: .62;
  cursor: wait;
}

.notification-dialog {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(21, 21, 21, .44);
}

.notification-dialog[hidden] {
  display: none;
}

.notification-card {
  position: relative;
  width: min(420px, 100%);
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--surface);
  padding: 24px 22px 20px;
  box-shadow: 8px 10px 0 rgba(21, 21, 21, .92);
}

.notification-card h2 {
  margin: 0 42px 10px 0;
  font-size: clamp(1.35rem, 6vw, 1.9rem);
  line-height: 1.05;
}

.notification-card p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 1rem;
  line-height: 1.45;
}

.notification-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.notification-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.notification-primary,
.notification-secondary {
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 950;
}

.notification-primary {
  background: var(--ink);
  color: #fff;
}

.notification-secondary {
  background: #fff;
  color: var(--ink);
}

.notification-primary[hidden],
.notification-secondary[hidden] {
  display: none;
}

.message {
  margin: 12px 0;
  padding: 13px;
  border-radius: 14px;
  background: #fff2cf;
  color: #5e4600;
  font-weight: 750;
}

.strip-list > .message {
  margin: 12px 18px;
}

.strip-list {
  display: grid;
  gap: 2px;
  margin: 0 -18px;
  contain: layout paint;
}

.strip-list.is-switching-out {
  pointer-events: none;
  animation: strip-list-out .1s ease-out forwards;
}

.strip-list.is-switching-out.to-left {
  --list-exit-x: -18px;
}

.strip-list.is-switching-out.to-right {
  --list-exit-x: 18px;
}

.strip-list.is-entering {
  animation: strip-list-in .18s cubic-bezier(.22, .61, .36, 1) both;
}

.strip-list.is-entering.from-right {
  --list-enter-x: 22px;
}

.strip-list.is-entering.from-left {
  --list-enter-x: -22px;
}

@keyframes strip-list-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: .46;
    transform: translateX(var(--list-exit-x, 0)) scale(.998);
  }
}

@keyframes strip-list-in {
  from {
    opacity: 0;
    transform: translateX(var(--list-enter-x, 0)) translateY(3px) scale(.998);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

.native-app .strip-list {
  margin-top: 6px;
}

.strip-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 14px;
  min-height: 154px;
  padding: 18px 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.strip-card:focus-visible {
  outline: 3px solid rgba(0, 106, 255, .28);
  outline-offset: -3px;
}

.strip-copy {
  min-width: 0;
  padding-bottom: 28px;
}

.strip-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.strip-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 5.2vw, 1.72rem);
  line-height: 1.14;
}

.strip-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--soft-ink);
  font-size: 1rem;
  line-height: 1.38;
}

.hashtag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 9px;
  margin-bottom: 7px;
}

.hashtag {
  color: var(--blue);
  font-weight: 780;
}

.strip-card .hashtag-list {
  gap: 3px 7px;
  margin-top: 7px;
  margin-bottom: 3px;
}

.strip-card .hashtag {
  font-size: clamp(.78rem, 3.1vw, .92rem);
  line-height: 1.16;
  font-weight: 760;
}

.strip-meta {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 122px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.reader-id {
  margin: 0;
  color: #a39b91;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .05em;
}

.strip-thumb {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  align-self: center;
  padding-top: 18px;
}

.strip-thumb img {
  display: block;
  width: 122px;
  height: 122px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.new-strip-badge {
  position: absolute;
  top: 18px;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--new-badge-size);
  height: var(--new-badge-size);
  pointer-events: none;
  transform: translate(-24%, -24%);
}

.strip-thumb .new-strip-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  animation: new-badge-soft-spin 5.8s linear infinite;
  transform-origin: center;
}

.app-new-badge-letter-enabled .new-strip-badge::after {
  content: "N";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  color: #fff;
  font-family: var(--font-main);
  font-size: calc(var(--new-badge-size) * .56);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow: none;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  animation: new-badge-letter-pulse 5.8s linear infinite;
}

.app-new-badge-tinted .strip-thumb .new-strip-badge img {
  filter: var(--new-badge-color-filter);
}

.app-new-badge-color-effect .strip-thumb .new-strip-badge img {
  animation:
    new-badge-soft-spin 5.8s linear infinite,
    new-badge-color-cycle 4.6s linear infinite;
}

.app-new-badge-google-effect .new-strip-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #4285F4;
  -webkit-mask: var(--new-badge-mask) center / contain no-repeat;
  mask: var(--new-badge-mask) center / contain no-repeat;
  transform-origin: center;
  animation:
    new-badge-soft-spin 5.8s linear infinite,
    new-badge-google-colors 4.8s steps(1, end) infinite;
}

.app-new-badge-google-effect .strip-thumb .new-strip-badge img {
  opacity: 0;
}

@keyframes new-badge-soft-spin {
  0% {
    transform: scale(1) rotate(0deg);
  }
  66% {
    transform: scale(1) rotate(238deg);
  }
  72% {
    transform: scale(1.12) rotate(259deg);
  }
  78% {
    transform: scale(.98) rotate(281deg);
  }
  84% {
    transform: scale(1.06) rotate(302deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

@keyframes new-badge-google-colors {
  0%, 100% { background: #4285F4; }
  25% { background: #DB4437; }
  50% { background: #F4B400; }
  75% { background: #0F9D58; }
}

@keyframes new-badge-letter-pulse {
  0%, 66%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  72% {
    transform: translate(-50%, -50%) scale(1.12);
  }
  78% {
    transform: translate(-50%, -50%) scale(.98);
  }
  84% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@keyframes new-badge-color-cycle {
  0% {
    filter: hue-rotate(var(--new-badge-color-hue)) saturate(1.35);
  }
  100% {
    filter: hue-rotate(calc(var(--new-badge-color-hue) + 360deg)) saturate(1.45);
  }
}

@keyframes new-badge-color-cycle-pastel {
  0% {
    filter: sepia(.14) hue-rotate(var(--new-badge-color-hue)) saturate(.62) brightness(1.14) contrast(.92);
  }
  100% {
    filter: sepia(.14) hue-rotate(calc(var(--new-badge-color-hue) + 360deg)) saturate(.68) brightness(1.16) contrast(.92);
  }
}

@keyframes app-color-matrix {
  0% {
    filter: hue-rotate(0deg) saturate(1.08);
  }
  50% {
    filter: hue-rotate(180deg) saturate(1.25);
  }
  100% {
    filter: hue-rotate(360deg) saturate(1.08);
  }
}

@keyframes app-color-matrix-pastel {
  0% {
    filter: sepia(.14) hue-rotate(0deg) saturate(.64) brightness(1.12) contrast(.94);
  }
  50% {
    filter: sepia(.16) hue-rotate(180deg) saturate(.7) brightness(1.16) contrast(.92);
  }
  100% {
    filter: sepia(.14) hue-rotate(360deg) saturate(.64) brightness(1.12) contrast(.94);
  }
}

.app-theme-color-effect .brand-mark,
.app-theme-color-effect .install-button,
.app-reader-frame-color-effect .carousel-viewport,
.app-desktop-note-bg-color-effect .desktop-app-note,
.app-desktop-note-border-color-effect .desktop-app-note,
.app-desktop-note-text-color-effect .desktop-app-note,
.app-share-modal-bg-color-effect .share-card,
.app-share-modal-text-color-effect .share-card,
.app-share-modal-border-color-effect .share-card,
.app-share-modal-button-bg-color-effect .share-primary,
.app-share-modal-button-text-color-effect .share-primary {
  animation: app-color-matrix 7.5s linear infinite;
}

.app-color-effect-pastel.app-new-badge-color-effect .strip-thumb .new-strip-badge img {
  animation:
    new-badge-soft-spin 5.8s linear infinite,
    new-badge-color-cycle-pastel 5.2s linear infinite;
}

.app-color-effect-pastel.app-theme-color-effect .brand-mark,
.app-color-effect-pastel.app-theme-color-effect .install-button,
.app-color-effect-pastel.app-reader-frame-color-effect .carousel-viewport,
.app-color-effect-pastel.app-desktop-note-bg-color-effect .desktop-app-note,
.app-color-effect-pastel.app-desktop-note-border-color-effect .desktop-app-note,
.app-color-effect-pastel.app-desktop-note-text-color-effect .desktop-app-note,
.app-color-effect-pastel.app-share-modal-bg-color-effect .share-card,
.app-color-effect-pastel.app-share-modal-text-color-effect .share-card,
.app-color-effect-pastel.app-share-modal-border-color-effect .share-card,
.app-color-effect-pastel.app-share-modal-button-bg-color-effect .share-primary,
.app-color-effect-pastel.app-share-modal-button-text-color-effect .share-primary {
  animation: app-color-matrix-pastel 8.2s linear infinite;
}

.strip-count {
  position: absolute;
  right: -6px;
  bottom: -7px;
  min-width: 38px;
  border-radius: 999px;
  background: rgba(21, 21, 21, .88);
  color: #fff;
  padding: 5px 8px;
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
}

.star-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.strip-star {
  position: absolute;
  left: 14px;
  bottom: 14px;
}

.star-button img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  transform: scale(1);
  transition: transform .18s ease, filter .18s ease;
}

.star-button.is-favorite img {
  animation: star-pop .28s ease;
}

@keyframes star-pop {
  0% { transform: scale(.72) rotate(-16deg); }
  70% { transform: scale(1.18) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}

.reader-view {
  position: fixed;
  inset: 0;
  z-index: 70;
  height: 100dvh;
  padding: 0 0 32px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  will-change: transform, opacity;
}

body.reader-open .reader-view {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

body.reader-closing .reader-view {
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}

.reader-topbar {
  position: sticky;
  top: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: var(--reader-bar-height);
  padding: max(22px, calc(env(safe-area-inset-top) + 16px)) 14px 10px;
  border-bottom: 1px solid var(--line);
}

.back-button {
  width: 43px;
  height: 43px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.reader-content {
  display: grid;
  gap: 8px;
  padding: 12px 14px 34px;
}

.reader-view.is-switching-out .reader-topbar,
.reader-view.is-switching-out .reader-content {
  animation: reader-next-out .16s ease forwards;
}

.reader-view.is-switching-in .reader-topbar,
.reader-view.is-switching-in .reader-content {
  animation: reader-next-in .26s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes reader-next-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-18px) scale(.985);
  }
}

@keyframes reader-next-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reader-stage {
  position: relative;
  display: grid;
  align-items: center;
}

.carousel-viewport {
  width: 100%;
  max-height: min(72dvh, 690px);
  aspect-ratio: var(--reader-frame-ratio, 1 / 1);
  overflow: hidden;
  border-radius: 0;
  background: var(--reader-frame-bg, #eee7dc);
  padding: clamp(10px, 2.4vw, 16px);
  touch-action: pan-y;
  transition: background-color .28s ease;
}

.carousel-track {
  --reader-slide-gap: 18px;
  display: flex;
  gap: var(--reader-slide-gap);
  height: 100%;
  will-change: transform;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}

.carousel-track.hint-peek {
  animation: carousel-peek .65s ease-in-out;
}

@keyframes carousel-peek {
  0%, 100% { transform: translateX(0); }
  42% { transform: translateX(-42px); }
}

.reader-figure {
  display: grid;
  flex: 0 0 100%;
  place-items: center;
  min-width: 0;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

.reader-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: #fff;
}

.reader-next-pull {
  --pull-progress: 0;
  position: fixed;
  left: 50%;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 4px));
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--soft-ink);
  padding: 6px 13px 6px 7px;
  box-shadow: 0 12px 26px rgba(21, 21, 21, .14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
}

body.has-install-banner .reader-next-pull {
  bottom: max(76px, calc(env(safe-area-inset-bottom, 0px) + 68px));
}

body.reader-alt-open .reader-next-pull {
  left: 50%;
  right: auto;
}

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

.reader-next-pull.is-complete {
  animation: next-reader-rise .28s ease forwards;
}

.reader-next-arrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  background:
    conic-gradient(var(--blue) calc(var(--pull-progress) * 1turn), #e7edf7 0);
  color: transparent;
  font-size: 1.05rem;
  font-weight: 950;
  overflow: hidden;
}

.reader-next-arrow::before,
.reader-next-arrow::after {
  content: "\2193";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.reader-next-arrow::before {
  color: var(--blue);
}

.reader-next-arrow::after {
  color: #fff;
  opacity: var(--pull-progress);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}

.reader-next-pull.is-complete .reader-next-arrow::after {
  opacity: 1;
}

.reader-next-label {
  font-size: .8rem;
  font-weight: 900;
}

@keyframes next-reader-rise {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -42px);
  }
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(21, 21, 21, .74);
  color: #fff;
  cursor: pointer;
  font-size: 1.7rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

.carousel-button:disabled {
  opacity: 0;
  pointer-events: none;
}

.reader-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reader-dots {
  display: flex;
  gap: 6px;
}

.reader-dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: #c8bfb4;
  padding: 0;
}

.reader-dots button.is-active {
  width: 22px;
  background: var(--ink);
}

.reader-counter {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
}

.reader-actions {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  justify-items: start;
  gap: 8px;
}

.reader-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--soft-ink);
  padding: 0;
  font-size: .82rem;
  font-weight: 850;
  cursor: pointer;
}

.reader-action-button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.share-toggle img {
  width: var(--reader-share-icon-size);
  height: var(--reader-share-icon-size);
  filter: brightness(0) saturate(100%) invert(24%) sepia(0%) saturate(0%) hue-rotate(171deg) brightness(94%) contrast(90%);
}

#reader-alt {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--soft-ink);
  font-size: .92rem;
  font-style: italic;
  line-height: 1.45;
}

#reader-alt.is-typing {
  min-height: 1.45em;
}

#reader-alt.is-opening {
  color: var(--blue);
  animation: alt-color-in 920ms ease forwards;
}

#reader-alt.is-closing {
  color: var(--soft-ink);
}

@keyframes alt-dot {
  0%, 100% { opacity: .35; transform: scale(.72); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes alt-color-in {
  from { color: var(--blue); }
  to { color: var(--soft-ink); }
}

.alt-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--blue);
  vertical-align: baseline;
  animation: alt-dot 720ms ease-in-out infinite;
}

.share-dialog {
  position: fixed;
  inset: 0;
  z-index: 270;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(21, 21, 21, .44);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.share-dialog.is-open {
  opacity: 1;
  pointer-events: auto;
}

.share-dialog[hidden] {
  display: none;
}

.share-card {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(430px, 100%);
  border: 2px solid var(--share-modal-border);
  border-radius: 22px;
  background: var(--share-modal-bg);
  color: var(--share-modal-text);
  padding: 24px 22px 20px;
  box-shadow: 8px 10px 0 rgba(21, 21, 21, .92);
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .22s ease, transform .22s cubic-bezier(.22, .61, .36, 1);
}

.share-dialog.is-open .share-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.share-card h2 {
  margin: 0 42px 0 0;
  color: inherit;
  font-size: clamp(1.35rem, 6vw, 1.9rem);
  line-height: 1.05;
}

.share-intro,
.share-strip-id {
  margin: 0;
  color: var(--share-modal-text);
  color: color-mix(in srgb, var(--share-modal-text) 68%, #ffffff);
  font-size: .94rem;
  font-weight: 750;
  line-height: 1.4;
}

.share-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--share-modal-border);
  border-radius: 999px;
  background: var(--share-modal-bg);
  color: var(--share-modal-text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.share-qr {
  justify-self: center;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(21, 21, 21, .16);
  border: 1px solid color-mix(in srgb, var(--share-modal-border) 18%, transparent);
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}

.share-link-field {
  display: grid;
  gap: 6px;
  color: var(--share-modal-text);
  font-size: .82rem;
  font-weight: 850;
}

.share-link-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(21, 21, 21, .18);
  border: 1px solid color-mix(in srgb, var(--share-modal-border) 24%, transparent);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  color: var(--share-modal-text);
  padding: 0 12px;
  font-size: .9rem;
  font-weight: 750;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.share-primary,
.share-secondary {
  min-height: 44px;
  border: 2px solid var(--share-modal-border);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 950;
}

.share-primary {
  background: var(--share-modal-button-bg);
  color: var(--share-modal-button-text);
}

.share-secondary {
  background: transparent;
  color: var(--share-modal-text);
}

.reader-copy {
  display: grid;
  gap: 6px;
}

.reader-body {
  margin: 0;
  color: var(--soft-ink);
  font-size: 1.05rem;
  line-height: 1.58;
  white-space: pre-wrap;
}

.load-sentinel {
  height: 1px;
}

.app-footer[hidden] {
  display: none;
}

.app-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 34px auto 0;
  padding: 22px 4px 8px;
  text-align: center;
  color: rgba(21, 21, 21, .56);
  font-size: .92rem;
  line-height: 1.35;
}

.app-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 4px;
}

.app-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
}

.app-footer-social-icon {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
  opacity: .9;
}

.app-footer-social-link:hover .app-footer-social-icon,
.app-footer-social-link:focus-visible .app-footer-social-icon {
  opacity: 1;
}

.app-footer-copy {
  margin: 0;
}

.app-footer-persons {
  width: min(var(--app-footer-persons-width, 220px), 70vw);
  max-width: 520px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 720px) {
  .desktop-app-note {
    display: block;
    margin: 0 0 12px;
    border: 1px solid var(--desktop-note-border);
    border-radius: 16px;
    background: var(--desktop-note-bg);
    color: var(--desktop-note-text);
    padding: 12px 14px;
    font-size: .92rem;
    font-weight: 760;
    line-height: 1.42;
  }

  .strip-list {
    margin-left: 0;
    margin-right: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
  }

  .strip-card {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .strip-meta {
    width: 150px;
  }

  .strip-thumb img {
    width: 150px;
    height: 150px;
  }
}

@media (min-width: 781px) {
  body.reader-open .app-shell {
    opacity: .42;
    transform: none;
  }

  .reader-view {
    inset: 0 auto 0 50%;
    width: min(780px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    box-shadow: 0 18px 58px rgba(36, 28, 20, .18);
    transform: translateX(calc(-50% + 110vw));
  }

  body.reader-open .reader-view {
    transform: translateX(-50%);
  }

  body.reader-closing .reader-view {
    transform: translateX(calc(-50% + 110vw));
  }

  .reader-topbar {
    padding-left: 22px;
    padding-right: 22px;
  }

  .reader-content {
    max-width: 724px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
  }

  .carousel-viewport {
    height: min(66dvh, 620px);
    max-height: none;
    aspect-ratio: auto;
  }

  .carousel-track,
  .reader-figure {
    height: 100%;
    min-height: 0;
  }

  .reader-figure img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .reader-next-pull {
    left: 50%;
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .feed-tabs {
    padding-left: 14px;
    padding-right: 14px;
  }

  .strip-list {
    margin-left: -14px;
    margin-right: -14px;
  }

  .strip-list > .message {
    margin-left: 14px;
    margin-right: 14px;
  }

  .strip-card {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 10px;
    padding: 16px 14px 24px;
  }

  .strip-meta {
    top: 16px;
    right: 14px;
    width: 104px;
  }

  .strip-thumb img {
    width: 104px;
    height: 104px;
  }

  .strip-copy h3 {
    font-size: 1.26rem;
  }

  .strip-summary {
    font-size: .94rem;
  }

  .strip-star {
    left: 10px;
    bottom: 12px;
  }

  .push-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .install-button {
    width: calc(100% - 24px);
    min-height: 44px;
    border-radius: 14px;
    padding: 0 14px;
    font-size: .82rem;
  }

  .install-button img {
    width: 21px;
    height: 21px;
  }

  .app-footer {
    font-size: .84rem;
    padding-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell,
  .reader-view,
  .reader-topbar,
  .reader-content,
  .topbar,
  .feed-tabs,
  .app-exit-toast,
  .strip-list {
    animation: none;
    transition: none;
  }

  .strip-thumb .new-strip-badge img,
  .app-new-badge-letter-enabled .new-strip-badge::after,
  .app-new-badge-google-effect .new-strip-badge::before {
    animation: none;
  }

  .app-theme-color-effect .brand-mark,
  .app-theme-color-effect .install-button,
  .app-reader-frame-color-effect .carousel-viewport,
  .app-desktop-note-bg-color-effect .desktop-app-note,
  .app-desktop-note-border-color-effect .desktop-app-note,
  .app-desktop-note-text-color-effect .desktop-app-note,
  .app-share-modal-bg-color-effect .share-card,
  .app-share-modal-text-color-effect .share-card,
  .app-share-modal-border-color-effect .share-card,
  .app-share-modal-button-bg-color-effect .share-primary,
  .app-share-modal-button-text-color-effect .share-primary {
    animation: none;
  }
}
