:root {
  --ink: #233a30;
  --pine: #244939;
  --quiet: #506356;
  --mist: #e8ede3;
  --paper: #fbfaf2;
  --line: #c7d1c3;
  --red: #864632;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font: 16px/1.55 var(--sans);
  color: var(--ink);
  color-scheme: light;
  background: #dfe8dc;
}
* { box-sizing: border-box }
body { margin: 0; min-height: 100dvh }
[hidden] { display: none !important }
h1, h2, p { margin: 0 }
button, input { font: inherit; color: inherit }
button, a { touch-action: manipulation }
button { cursor: pointer }
button:disabled { cursor: default }
a { color: var(--pine); text-underline-offset: 4px }
:focus-visible { outline: 2px solid #a15a2c; outline-offset: 3px }
[tabindex="-1"]:focus { outline: none }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap }

.review {
  width: min(850px, calc(100% - 60px));
  min-height: 100dvh;
  margin: auto;
  padding: 29px 0;
  display: grid;
  grid-template-columns: 390px minmax(255px, 322px);
  justify-content: center;
  align-items: center;
  gap: clamp(30px, 6.5vw, 84px);
}
.device {
  position: relative;
  isolation: isolate;
  height: min(844px, calc(100dvh - 58px));
  max-width: 390px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border: 5px solid #37483d;
  border-radius: 30px;
  background: #f7f7ee;
  box-shadow: 0 22px 70px #253b302b, 0 1px 0 1px #485c4f22;
}
.device::-webkit-scrollbar { display: none }
.login-view {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 17px 14px 12px;
  background: linear-gradient(160deg, #e5ebdf, #edf0e6 58%, #edf0e6);
}
.mast { align-self: flex-start; display: flex; align-items: center; gap: 8px; min-height: 47px; padding-inline: 7px; margin-bottom: 10px }
.mast canvas { display: block; flex: none; width: 42px; height: 42px }
.mast div { display: grid; gap: 3px }
.mast strong { font: 700 27px/1 var(--serif); letter-spacing: .035em }
.mast small { color: var(--quiet); font-size: 12px; font-weight: 600 }
.ferry {
  --ferry-image: url(account-ferry.webp);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(166px, 54vw, 207px);
  flex: none;
  border-radius: 17px;
  background: #285040;
}
.ferry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53% }
.print-proof { display: none }
.ferry::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #163b30a3, #163b302b 55%, transparent 77%) }
.ferry::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  background: linear-gradient(112deg, transparent 38%, #fbf1cf52 52%, transparent 65%);
  pointer-events: none;
}
.ferry p {
  position: absolute;
  z-index: 1;
  left: clamp(18px, 6vw, 25px);
  top: 28%;
  color: #fcf5db;
  text-shadow: 0 2px 12px #15392b55;
  font: 700 clamp(28px, 8.6vw, 38px)/1.22 var(--serif);
  letter-spacing: .025em;
}
.login-main {
  position: relative;
  z-index: 1;
  margin: -17px 7px 0;
  padding: 23px clamp(15px, 5vw, 21px) 20px;
  border: 1px solid #d2dacb;
  border-radius: 21px 21px 15px 15px;
  background: var(--paper);
  box-shadow: 0 7px 20px #31432e10;
}
.login-main h1 { font: 700 28px/1.22 var(--serif); letter-spacing: .012em }
.hint { margin-top: 9px; color: var(--quiet); font-size: 14px }
#login-form { margin-top: 49px }
.field {
  position: relative;
  min-height: 55px;
  border: 1px solid #bdcbbd;
  border-radius: 12px;
  background: #fffff8;
  transition: box-shadow 170ms ease, border-color 170ms ease;
}
.field:focus-within { border-color: #65856f; box-shadow: 0 0 0 3px #5c886323 }
.field:has([aria-invalid="true"]) { border-color: #ab6b57 }
.field input {
  display: block;
  width: 100%;
  min-height: 53px;
  padding: 10px 14px;
  border: 0;
  border-radius: inherit;
  background: transparent;
}
.field input::placeholder { color: #627567 }
.field input:focus-visible { outline: none }
.primary {
  min-height: 52px;
  width: 100%;
  margin-top: 13px;
  border: 0;
  border-radius: 12px;
  background: var(--pine);
  color: #fffdf5;
  font-weight: 670;
  transition: transform 150ms ease, background-color 150ms ease;
}
.primary:hover { background: #2b5342 }
.primary:active { transform: scale(.99) }
.primary:disabled { background: #365848 }
.trial-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: #edf0e5; color: var(--pine); font-weight: 650; transition: background-color 150ms ease, border-color 150ms ease; -webkit-tap-highlight-color: transparent }
.trial-content { display: inline-flex; align-items: center; gap: 4px }
.trial-button:enabled:is(:hover,:active) { background: #e3eade }
.trial-button:disabled { opacity: .58 }
.trial-button:is([data-loading], [data-ready]) { opacity: 1; border-color: #a9bca7; background: #e3eade }
.trial-button[data-loading] { cursor: progress }
.trial-button canvas { display: block; flex: none; width: 34px; height: 34px }
.trial-status:not(.sr) { margin-top: 7px; color: var(--red); font-size: 13px; line-height: 1.4; text-align: center }
.trial-policy { margin: 8px -14px 0; color: var(--quiet); font-size: 11px; line-height: 1.5; text-align: center; text-wrap: balance }
.text-button {
  min-height: 44px;
  min-width: 44px;
  padding: 7px 0;
  border: 0;
  background: none;
  color: var(--pine);
  font-size: 13px;
  font-weight: 640;
}
.text-button:hover { text-decoration: underline; text-underline-offset: 4px }
.phone-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 13px 0;
  color: var(--quiet);
  font-size: 12px;
}

.garden {
  position: absolute;
  z-index: 1;
  inset: auto 7px 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  height: 46px;
  pointer-events: none;
}
.sprig {
  display: block;
  justify-self: center;
  width: 100%;
  max-width: var(--sprig-width);
  min-width: 0;
  height: var(--sprig-height);
  transform-origin: center bottom;
  animation: grow 360ms cubic-bezier(.24,.75,.32,1.12) var(--delay) both;
}
.sprig.animal { animation-name: peek }
.sprig canvas { display: block; width: 100%; height: 100% }
.failure {
  position: absolute;
  z-index: 1;
  left: 7px;
  right: 0;
  bottom: calc(100% + 1px);
  display: flex;
  align-items: end;
  pointer-events: none;
  color: var(--red);
  animation: peek 340ms cubic-bezier(.24,.75,.32,1.12) both;
}
.failure canvas { display: block; width: 47px; height: 47px; flex: none; margin: 0 3px 0 -1px }
.failure > span {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 7px;
  max-width: 100%;
  padding: 5px 9px;
  margin-bottom: 5px;
  border: 1px solid #e6cabc;
  border-radius: 8px 8px 8px 2px;
  background: #f7ece2;
  font-size: 12px;
  line-height: 1.35;
}
.failure strong { color: #783b2a; font-size: 13px; white-space: nowrap }
@keyframes grow {
  0% { opacity: 0; transform: translateY(2px) scale(.75,.20) }
  65% { opacity: 1; transform: scale(1.02,1.05) }
  100% { opacity: 1; transform: none }
}
@keyframes peek {
  from { opacity: 0; transform: translateY(7px) scale(.88) }
  to { opacity: 1; transform: none }
}
.replaced { text-align: left }
.replaced canvas { display: block; width: 60px; height: 60px; margin-left: -5px }
.replaced h2 { font: 700 27px/1.28 var(--serif); text-wrap: balance }
.replaced .primary { margin-top: 24px }
.shelf-view { height: 100%; display: grid; grid-template-rows: minmax(0,1fr) auto }
.shelf-view[data-stage] { position: absolute; z-index: 2; inset: 0; background-color: var(--mist) }
.shelf-view[data-stage="warming"] { visibility: hidden }
#global-wait { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none }
#global-wait .wait-indicator { display: flex; align-items: center; gap: 7px; padding: 6px 18px 6px 10px; max-width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--pine); font-size: 15px; font-weight: 650; box-shadow: 0 5px 24px #233e3229 }
#global-wait canvas { display: block; flex: none }
.crossing canvas { display: block; width: 100%; height: 100% }
.crossing:not([data-renderer="ink"]) canvas { visibility: hidden }
.crossing { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none }
.crossing[data-renderer="wash"] {
  background: #446650 var(--crossing-landscape, url(crossing-river.webp)) center / cover;
  mask: url(crossing-ink-blot.webp) 50% 43% / 1% 1% no-repeat;
}
.crossing[data-renderer="wash"]::after {
  content: ""; position: absolute; top: 61%; left: 17%; width: 33%; aspect-ratio: 252/93;
  background: url(crossing-paper-boat.webp) center / contain no-repeat;
  animation: drift-across 1900ms ease-in-out both;
}
@keyframes drift-across { to { transform: translate(115%, -20%) rotate(-2deg) } }
#shelf-frame { min-height: 0; position: relative }
#shelf-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--mist) }
.shelf-actions {
  display: flex;
  justify-content: space-between;
  padding: 0 14px max(0px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #f2f5eb;
}
[data-live-login] .inspector, [data-live-login] [data-demo], [data-live-login] #tools-open { display: none }
[data-live-login] .review { display: block; width: min(100%, 465px); padding: 0; margin: auto }
[data-live-login] .device { height: 100dvh; max-width: none; border: 0; border-radius: 0; box-shadow: none }
[data-live-login] .shelf-actions { display: none }

.inspector { max-width: 322px; align-self: center }
.inspector h2, .tools-dialog h2 { font: 700 30px/1.24 var(--serif) }
.inspector > p:first-of-type { margin: 10px 0 17px; color: var(--quiet); font-size: 14px }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px }
.demo-grid button {
  min-height: 46px;
  padding: 6px 8px;
  border: 1px solid #b9c9bb;
  border-radius: 9px;
  background: #f3f6ed;
  color: var(--pine);
  font-size: 13px;
  font-weight: 650;
}
.demo-grid button:hover { background: var(--paper) }
.prototype-note { margin-top: 12px; color: var(--quiet); font-size: 12px }
.design-link { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; margin-top: 5px; font-size: 14px; font-weight: 640 }
.tools-dialog {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 420px);
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 20px max(18px, env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: 21px 21px 0 0;
  background: var(--paper);
  color: var(--ink);
}
.tools-dialog::backdrop { background: #182f2380 }
.tools-dialog header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px }
.tools-dialog h2 { font-size: 23px }
.trial-notice {
  inset: 0;
  width: min(330px, calc(100% - 36px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px 23px 20px;
  border-radius: 21px;
  box-shadow: 0 12px 38px #142c2346;
}
.trial-notice h2 { margin-bottom: 10px; font-size: clamp(20px, 5.8vw, 23px) }
#trial-renewed { --renewal-accent: #b34438 }
.trial-renewed-again, #trial-renewed-limit { color: var(--renewal-accent) }
#trial-expired-message { color: var(--quiet); line-height: 1.65 }
#trial-renewed-message { color: var(--ink); font-size: 16px; line-height: 1.65 }
#trial-renewed-quota { margin-top: 12px; color: var(--quiet); font-size: 14px }
#trial-renewed-status { margin-top: 8px; color: var(--red); font-size: 13px }
.trial-notice-actions { text-align: center; margin-top: 22px }
.trial-notice-confirm {
  position: relative; min-width: 116px; min-height: 46px;
  padding: 8px 19px; border: 0; border-radius: 30px;
  background: var(--pine); color: #fffdf5; font-weight: 670;
}
.trial-notice-confirm:active { transform: scale(.98) }
#trial-renewed-confirm { min-width: 156px; padding-inline-start: 53px }
#trial-renewed-flowers {
  position: fixed; inset: 0; z-index: 2;
  width: 100%; height: 100%; pointer-events: none;
}
.renewal-buddy { position: absolute; left: 7px; top: -10px; width: 44px; height: 38px; pointer-events: none; overflow: visible }
.renewal-buddy-body { transform-origin: 50% 80%; transform-box: fill-box }
.renewal-buddy :is(.reach,.resting) { fill: #9eb687; stroke: #58684b; stroke-width: 1.15; stroke-linejoin: round }
.renewal-buddy .reach { transform-origin: 31px 24px }
@media (prefers-reduced-motion: no-preference) {
  #trial-renewed[open] .renewal-buddy-body { animation: renewal-watch 3.4s .8s ease-in-out 2 }
  #trial-renewed-confirm[data-celebrating] .renewal-buddy-body { animation: renewal-bob .44s ease-out both }
  #trial-renewed-confirm[data-celebrating] .reach { animation: renewal-paw .40s ease-out both }
}
@keyframes renewal-watch { 0%,17%,47%,100% { transform: none } 31% { transform: rotate(-5deg) translateY(-1px) } }
@keyframes renewal-bob { 0%,100% { transform: none } 20% { transform: translateY(2px) } 55% { transform: translateY(-5px) rotate(-9deg) } }
@keyframes renewal-paw { 0%,100% { transform: none } 48%,72% { transform: rotate(-54deg) } }
.share-expired {
  inset: 0;
  width: min(290px, calc(100% - 36px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 34px 48px;
  border-radius: 20px;
  box-shadow: 0 12px 36px #142c2352;
  text-align: center;
}
.share-expired-close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--quiet);
  -webkit-tap-highlight-color: transparent;
}
.share-expired-close::before,
.share-expired-close::after {
  content: "";
  grid-area: 1 / 1;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.share-expired-close::before { transform: rotate(45deg) }
.share-expired-close::after { transform: rotate(-45deg) }
.share-expired-close:active { background: var(--mist) }
@media (prefers-reduced-motion: no-preference) {
  .share-expired[open] { animation: share-expired-open 220ms cubic-bezier(.22,.7,.25,1) both }
}
@keyframes share-expired-open {
  from { opacity: 0; transform: translateY(8px) scale(.97) }
  to { opacity: 1; transform: none }
}
@media (max-width: 760px) {
  :root { background: #edf0e6 }
  .review { display: block; width: 100%; padding: 0 }
  .device { height: auto; min-height: 100dvh; max-width: 430px; margin: auto; border: 0; border-radius: 0; box-shadow: none; overflow: visible }
  .login-view { min-height: 100dvh; padding-top: max(13px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)) }
  .shelf-view { height: 100dvh }
  .inspector { display: none }
}
@media (min-width: 391px) {
  .ferry { --ferry-image: url(account-ferry-wide.webp) }
}
@media (max-width: 350px) {
  .ferry { height: 164px }
  .login-main { margin-inline: 4px }
}
@media (prefers-reduced-motion: no-preference) {
  .login-view[data-opening] .ferry {
    transform-origin: center top;
    animation: ferry-open 620ms cubic-bezier(.2,.72,.25,1) both;
  }
  .login-view[data-opening] .print-proof {
    display: block;
    position: absolute;
    inset: 0;
    background: var(--ferry-image) center 53% / cover;
    filter: grayscale(1) sepia(.73) contrast(.84);
    animation: lay-color 690ms cubic-bezier(.3,.06,.18,1) both;
  }
  .login-view[data-opening] .ferry::before { animation: paper-glint 640ms ease-out both }
  .login-view[data-opening] .login-main { animation: login-page-settle 480ms cubic-bezier(.2,.75,.27,1) 220ms both }
  .shelf-view[data-stage="arriving"] { clip-path: inset(0 100% 0 0) }
}
@keyframes lay-color {
  from { clip-path: polygon(-8% 0,100% 0,100% 100%,-18% 100%,0 55%) }
  to { clip-path: polygon(117% 0,119% 0,119% 100%,105% 100%,114% 55%) }
}
@keyframes ferry-open {
  from {
    opacity: .46;
    clip-path: polygon(0 0, 100% 0, 100% 51%, 46% 85%, 0 65%);
    transform: perspective(600px) rotateX(-12deg);
  }
  to {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 46% 100%, 0 100%);
    transform: none;
  }
}
@keyframes paper-glint {
  0% { opacity: 0; transform: translateX(-64%) }
  35% { opacity: .8 }
  100% { opacity: 0; transform: translateX(65%) }
}
@keyframes login-page-settle {
  from { opacity: 0; transform: translateY(-9px) }
  to { opacity: 1; transform: none }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
}

.primary[data-session-phase="loading"] {
  background: #e7ede2;
  box-shadow: inset 0 0 0 1px #c7d5c7;
  color: var(--pine);
}
#submit .session-loader {
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 6px;
  vertical-align: middle;
}
.session-caption {
  position: relative;
  margin-top: 8px;
}
.session-caption .trial-policy { margin-top: 0 }
.session-caption[data-notice] .trial-policy { visibility: hidden }
.session-note:not(.sr) {
  position: absolute;
  inset: 0 -4px;
  display: grid;
  place-items: center;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
