/* Home v0.2: scoped Song-style paper surface backed by real account data. */
.home-v02,.home-v02-editor-backdrop{
  --home-paper:#faf9f5;
  --home-ink:#282f28;
  --home-muted:#646a60;
  --home-moss:#40593b;
  --home-sage:#e6e9de;
  --home-line:#dcded5;
  --home-serif:"Songti SC","Noto Serif CJK SC","STSong","SimSun",serif;
}
.home-v02{
  position:relative;
  isolation:isolate;
  max-width:1250px;
  min-height:calc(100vh - 126px);
  color:var(--home-ink);
}
.home-v02 .sr-only{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.home-v02-background{
  position:fixed;
  z-index:-1;
  inset:0 0 0 176px;
  pointer-events:none;
  background-color:var(--home-paper);
  background-image:url("../../assets/home-v0.2/desktop-background.png");
  background-image:image-set(
    url("../../assets/home-v0.2/desktop-background.1408885ed7d3.avif") type("image/avif"),
    url("../../assets/home-v0.2/desktop-background.d55ffa4f0582.webp") type("image/webp"),
    url("../../assets/home-v0.2/desktop-background.png") type("image/png")
  );
  background-position:center bottom;
  background-size:cover;
  background-repeat:no-repeat;
}
.home-v02-masthead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:58px;
  margin-bottom:28px;
}
.home-v02-brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  color:var(--home-ink);
  font:500 28px/1.2 var(--home-serif);
  letter-spacing:0;
}
.home-v02-brand span{
  display:inline-grid;
  place-items:center;
  width:23px;
  height:25px;
  border:1px solid #a86754;
  border-radius:2px;
  color:#9c5847;
  font:9px/1 var(--home-serif);
}
.home-v02-date{
  position:relative;
  display:flex;
  min-height:44px;
  align-items:center;
  color:var(--home-muted);
  font:14px/1.5 var(--home-serif);
}
.home-v02-date input{
  position:absolute;
  inset:0;
  width:100%;
  opacity:0;
  cursor:pointer;
}
.home-v02-content{padding:22px 0 30px}
.home-v02-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.home-v02-record-actions{display:flex;align-items:center;gap:10px;min-width:0}
.home-v02-primary{
  display:inline-flex;
  min-height:60px;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:11px 28px;
  border:1px solid #526748;
  border-radius:8px;
  color:#2f4a2b;
  background:rgba(226,231,218,.82);
  font:500 24px/1.3 var(--home-serif);
}
.home-v02-primary:hover{background:#dde4d4}
.home-v02-primary span{font-family:var(--home-serif);font-size:28px;font-weight:400}
.home-v02-voice{
  display:grid;
  width:60px;
  height:60px;
  flex:none;
  place-items:center;
  padding:0;
  border:1px solid #526748;
  border-radius:50%;
  background:rgba(250,249,245,.9);
  color:var(--home-moss);
}
.home-v02-voice:hover{background:var(--home-sage)}
.home-v02-voice svg{width:24px;height:24px}
.home-v02-text-action{
  display:inline-flex;
  min-height:44px;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 2px;
  border:0;
  color:var(--home-moss);
  background:transparent;
  font:500 15px/1.5 var(--home-serif);
}
.home-v02-text-action:hover{text-decoration:underline;text-underline-offset:6px}
.home-v02-text-action:focus-visible,.home-v02-primary:focus-visible,.home-v02-voice:focus-visible,.home-v02-keepsake-entry:focus-visible,.home-v02-date:focus-within{
  outline:2px solid var(--home-moss);
  outline-offset:4px;
}
.home-v02-editorial{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:24px 64px;
  align-items:start;
  margin-top:58px;
}
.home-v02-memory{min-width:0}
.home-v02-memory:first-child{grid-row:span 2;padding:15px 20px 20px 0}
.home-v02-memory:nth-child(3){padding-top:22px;border-top:1px solid var(--home-line)}
.home-v02-provenance{
  margin:0 0 13px;
  color:var(--home-muted);
  font-size:12px;
  line-height:1.7;
}
.home-v02-memory h2{
  margin:0 0 10px;
  overflow-wrap:anywhere;
  color:var(--home-ink);
  font:500 25px/1.55 var(--home-serif);
  letter-spacing:0;
}
.home-v02-memory:first-child h2{font-size:29px}
.home-v02-excerpt{
  display:-webkit-box;
  margin:0 0 10px;
  overflow:hidden;
  overflow-wrap:anywhere;
  color:var(--home-ink);
  font:400 18px/1.9 var(--home-serif);
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
}
.home-v02-memory:first-child .home-v02-excerpt{font-size:20px;-webkit-line-clamp:5}
.home-v02-memory.quote .home-v02-excerpt{font-size:22px;line-height:1.8}
.home-v02-empty{
  grid-column:1/-1;
  margin:0;
  padding:36px 0 72px;
  color:var(--home-muted);
  font:400 21px/1.8 var(--home-serif);
}
.home-v02-lower{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:48px;
  margin-top:46px;
}
.home-v02-keepsake-entry{
  display:grid;
  grid-template-columns:82px minmax(120px,1fr) 24px;
  gap:24px;
  align-items:center;
  min-width:280px;
  min-height:132px;
  padding:0;
  border:0;
  color:var(--home-ink);
  background:transparent;
  text-align:left;
}
.home-v02-keepsake-preview{
  position:relative;
  display:grid;
  width:82px;
  height:124px;
  place-items:center;
  overflow:hidden;
  transform:rotate(-2deg);
  border:1px solid rgba(113,123,102,.24);
  border-radius:4px;
  background:#eee9dc;
  box-shadow:0 2px 7px rgba(84,100,73,.08);
}
.home-v02-keepsake-preview img{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);object-fit:contain}
.home-v02-keepsake-preview .keepsake-image-stack{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px)}
.home-v02-keepsake-preview .keepsake-image-stack img{inset:0;width:100%;height:100%}
.home-v02-keepsake-preview.empty{color:#77826f;font:500 31px/1 var(--home-serif)}
.home-v02-keepsake-copy{display:grid;gap:7px;min-width:0}
.home-v02-keepsake-copy small{
  overflow:hidden;
  color:var(--home-muted);
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.home-v02-keepsake-copy strong{
  overflow-wrap:anywhere;
  font:500 22px/1.45 var(--home-serif);
}
.home-v02-keepsake-arrow{color:var(--home-moss);font-size:19px}
.home-v02-state{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:24px;
  min-width:0;
  max-width:590px;
}
.home-v02-sparkline{width:clamp(170px,22vw,280px)}
.home-v02-sparkline>span{color:var(--home-muted);font-size:11px}
#home-mood-sparkline{display:block;width:100%;height:50px;color:#889881}
#home-mood-sparkline polyline{fill:none;stroke:currentColor;stroke-width:1.35}
#home-mood-sparkline circle{fill:currentColor}
#home-mood-sparkline text{fill:var(--home-muted);font:12px var(--sans)}
.home-v02-state-actions{display:flex;align-items:center;gap:18px;flex:none}
.home-v02-state-actions .home-v02-text-action{font-size:13px}
.home-v02-secondary{
  margin-top:52px;
  padding-top:16px;
  border-top:1px solid rgba(117,127,111,.2);
}
.home-v02-secondary>summary{
  display:flex;
  min-height:44px;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  cursor:pointer;
  color:var(--home-moss);
  font:500 16px/1.5 var(--home-serif);
  list-style:none;
}
.home-v02-secondary>summary::-webkit-details-marker{display:none}
.home-v02-secondary>summary::after{content:"＋";order:3;color:var(--home-muted)}
.home-v02-secondary[open]>summary::after{content:"−"}
.home-v02-secondary>summary small{margin-left:auto;color:var(--home-muted);font:12px/1.5 var(--sans)}
.home-v02 .g2-workspace{margin-top:16px;padding-top:20px;border-top:1px solid var(--home-line)}
.home-v02-editor-backdrop{
  position:fixed;
  z-index:70;
  inset:0;
  display:grid;
  place-items:center;
  overflow-y:auto;
  padding:24px;
  background:rgba(35,51,38,.24);
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
}
.home-v02-editor-backdrop[hidden]{display:none}
.home-v02-editor{
  width:min(700px,100%);
  max-height:calc(100dvh - 48px);
  overflow:auto;
  padding:24px 26px 26px;
  border:1px solid var(--home-line);
  border-radius:8px;
  background:var(--home-paper);
  box-shadow:0 24px 80px rgba(36,51,33,.18);
}
.home-v02-state-editor{width:min(620px,100%)}
.home-v02-editor>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
  padding-bottom:13px;
  border-bottom:1px solid var(--home-line);
}
.home-v02-editor>header h2{font:500 24px/1.35 var(--home-serif)}
.home-v02-editor-close{
  display:grid;
  width:44px;
  height:44px;
  place-items:center;
  border:0;
  border-radius:50%;
  color:var(--home-muted);
  background:transparent;
  font-size:26px;
}
.home-v02-editor-close:hover{background:var(--home-sage)}
.home-v02-editor .chain-card,.home-v02-editor .checkin-card{padding:0;background:transparent;border:0;box-shadow:none}
.thought-record-kind{display:flex;margin:0 0 13px;padding:0;border:0}.thought-record-kind legend{margin-bottom:7px;color:var(--home-muted);font-size:.72rem;font-weight:750}.thought-record-kind label{position:relative}.thought-record-kind input{position:absolute;opacity:0;pointer-events:none}.thought-record-kind span{display:grid;place-items:center;min-width:86px;min-height:44px;padding:8px 14px;border:1px solid var(--home-line);background:#fff;color:var(--home-muted);font-size:.78rem;font-weight:750}.thought-record-kind label:first-of-type span{border-radius:7px 0 0 7px}.thought-record-kind label:last-of-type span{border-left:0;border-radius:0 7px 7px 0}.thought-record-kind input:checked+span{background:var(--home-sage);color:var(--home-green);box-shadow:inset 0 0 0 1px var(--home-green)}.thought-record-kind input:focus-visible+span{outline:2px solid var(--home-green);outline-offset:2px}[data-chain-thought-only][hidden]{display:none}
.thought-source-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:9px 11px;border-left:2px solid var(--home-clay);background:#faf6f1;color:#6f655b;font-size:.76rem}.thought-source-notice[hidden]{display:none}.thought-source-notice button{min-height:36px;padding:5px 0;white-space:nowrap}
body.home-v02-editor-open{overflow:hidden}

@media(max-width:1100px){
  .home-v02-editorial{gap:24px 34px}
  .home-v02-lower{gap:30px}
  .home-v02-state{align-items:stretch;flex-direction:column;gap:0}
  .home-v02-sparkline{width:250px}
}
@media(max-width:760px){
  .home-v02{min-height:calc(100dvh - 137px)}
  .home-v02-background{inset:0}
}
@media(min-width:761px) and (max-width:920px){
  .sidebar{
    inset:0 auto 0 0;
    width:176px;
    height:auto;
    padding:26px 16px 20px;
    align-items:stretch;
    flex-direction:column;
    border-top:0;
    border-right:1px solid rgba(187,198,193,.72);
    box-shadow:8px 0 30px rgba(39,54,48,.04);
  }
  .sidebar .brand{display:flex}
  .sidebar .local-note{display:block}
  .sidebar nav{width:auto;height:auto;grid-template-columns:1fr;gap:4px}
  .sidebar .nav-button{
    min-height:40px;
    justify-content:flex-start;
    align-items:center;
    flex-direction:row;
    gap:10px;
    padding:9px 10px;
    border:1px solid transparent;
    border-radius:8px;
    font-size:.86rem;
  }
  .sidebar .nav-button>span{width:18px;height:auto;font-size:1rem}
  .sidebar .nav-button.active{border-color:rgba(193,202,198,.72);background:rgba(255,255,255,.82);box-shadow:0 3px 12px rgba(41,55,50,.05)}
  .sidebar .nav-button.active::before{left:-5px;right:auto;top:11px;bottom:11px;width:2px;height:auto}
  .sidebar-footer{display:grid}
  main{
    min-height:100vh;
    margin-left:176px;
    padding:48px clamp(26px,4.5vw,68px) 90px;
  }
  .home-v02-background{inset:0 0 0 176px}
}
@media(max-width:760px){
  .home-v02-background{
    inset:0;
    background-image:url("../../assets/home-v0.2/mobile-background.png");
    background-image:image-set(
      url("../../assets/home-v0.2/mobile-background.0549e6676ea3.avif") type("image/avif"),
      url("../../assets/home-v0.2/mobile-background.788fb03c2ae3.webp") type("image/webp"),
      url("../../assets/home-v0.2/mobile-background.png") type("image/png")
    );
    background-position:center top;
  }
  .home-v02-masthead{min-height:48px;margin-bottom:15px}
  .home-v02-brand{font-size:26px}
  .home-v02-content{padding-top:12px}
  .home-v02-actions{display:grid;grid-template-columns:minmax(0,1fr) 52px auto;align-items:center;gap:8px}
  .home-v02-record-actions{display:contents}
  .home-v02-primary{width:auto;min-height:52px;flex:1;padding:9px 16px;font-size:21px}
  .home-v02-voice{width:52px;height:52px}
  .home-v02-actions>#home-shuffle{margin:0;white-space:nowrap}
  .home-v02-editorial{display:flex;flex-direction:column;gap:21px;margin-top:3px}
  .home-v02-memory{width:100%}
  .home-v02-memory:first-child{padding:0}
  .home-v02-memory:nth-child(2){padding-top:18px;border-top:1px solid var(--home-line)}
  .home-v02-memory:nth-child(3){display:none}
  .home-v02-provenance{margin-bottom:7px;font-size:11px}
  .home-v02-memory h2,.home-v02-memory:first-child h2{margin-bottom:6px;font-size:22px;line-height:1.5}
  .home-v02-excerpt,.home-v02-memory:first-child .home-v02-excerpt{margin-bottom:4px;font-size:16px;line-height:1.8;-webkit-line-clamp:3}
  .home-v02-memory.quote .home-v02-excerpt{font-size:19px}
  .home-v02-lower{align-items:stretch;flex-direction:column;gap:14px;margin-top:20px}
  .home-v02-keepsake-entry{grid-template-columns:58px minmax(0,1fr) 20px;gap:18px;min-width:0;min-height:96px}
  .home-v02-keepsake-preview{width:58px;height:91px}
  .home-v02-keepsake-copy strong{font-size:19px}
  .home-v02-state{max-width:none;align-items:center;flex-direction:row;gap:9px}
  .home-v02-sparkline{width:auto;min-width:104px;flex:1}
  #home-mood-sparkline{height:35px}
  .home-v02-state-actions{gap:10px}
  .home-v02-state-actions .home-v02-text-action{font-size:12px}
  .home-v02-secondary{margin-top:32px}
  .home-v02-secondary>summary{align-items:flex-start;flex-wrap:wrap}
  .home-v02-secondary>summary small{width:calc(100% - 28px);margin:0;order:4}
  .home-v02-editor-backdrop{
    place-items:start center;
    padding:calc(10px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));
  }
  .home-v02-editor{max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto 0;padding:19px}
}
@media(max-width:360px){
  .home-v02-date{font-size:12px}
  .home-v02-brand{font-size:24px}
  .home-v02-state{align-items:stretch;flex-direction:column}
  .home-v02-state-actions{justify-content:space-between}
}
@media(prefers-reduced-motion:reduce){
  .home-v02-primary,.home-v02-text-action,.home-v02-editor-close{transition:none}
}
@media(min-width:761px) and (max-width:920px) and (orientation:landscape) and (max-height:500px){
  main{padding-top:18px}
  .section-nav{
    position:sticky;
    z-index:6;
    top:0;
    padding-top:8px;
    background:rgba(250,249,245,.96);
  }
}

/* The paper background remains behind every actionable home element. */
.home-v02-background{z-index:0}
.home-v02-masthead,.home-v02-content,.onboarding-workspace{position:relative;z-index:1}

/* Reuse the same subject crop in the collection and on the home surface. */
.home-v02-keepsake-preview{
  width:112px;
  height:138px;
  overflow:visible;
  transform:none;
  border:0;
  background:transparent;
  box-shadow:none;
}
.home-v02-keepsake-preview .keepsake-image-stack{
  position:absolute;
  left:50%;
  top:50%;
  width:100%;
  max-height:100%;
  transform:translate(-50%,-50%) rotate(-2deg);
}
.home-v02-keepsake-preview .keepsake-image-stack img{inset:auto}
.home-v02-keepsake-preview .keepsake-image-stack:not([data-placement-state="ready"]) img{inset:0;width:100%;height:100%}

/* A desktop home view is composed as one screen: memories left, live signals right. */
@media(min-width:921px){
  .home-v02{min-height:0}
  .home-v02-masthead{min-height:46px;margin-bottom:12px}
  .home-v02-content{
    display:grid;
    grid-template-columns:minmax(0,1.55fr) minmax(290px,.65fr);
    grid-template-rows:auto minmax(0,1fr) auto;
    column-gap:52px;
    padding:6px 0 14px;
  }
  .home-v02-actions{grid-column:1;grid-row:1}
  .home-v02-editorial{grid-column:1;grid-row:2;margin-top:28px;gap:18px 38px}
  .home-v02-memory:first-child{padding-top:8px}
  .home-v02-memory:nth-child(3){padding-top:14px}
  .home-v02-excerpt{font-size:17px;line-height:1.72;-webkit-line-clamp:3}
  .home-v02-memory:first-child .home-v02-excerpt{font-size:19px;-webkit-line-clamp:4}
  .home-v02-lower{grid-column:2;grid-row:1/3;align-self:start;display:flex;align-items:stretch;flex-direction:column;gap:34px;margin-top:4px}
  .home-v02-state{order:-1;align-items:stretch;flex-direction:column;gap:8px;max-width:none;padding-bottom:24px;border-bottom:1px solid var(--home-line)}
  .home-v02-sparkline{width:100%}
  .home-v02-keepsake-entry{grid-template-columns:112px minmax(110px,1fr) 20px;min-width:0;gap:18px}
  .home-v02-secondary{grid-column:1/-1;grid-row:3;margin-top:18px;padding-top:8px}
}
@media(max-width:760px){
  .home-v02-keepsake-preview{width:58px;height:91px}
  .book-header-actions.feed-header-actions,.keepsake-header-actions.feed-header-actions{align-items:center;flex-direction:row}
  .feed-search{max-height:34px;flex-basis:auto}
}

/* R8: one calm page atmosphere and reading-first home/thought layouts. */
:root{--r8-serif:"Songti SC","Noto Serif CJK SC","STSong","SimSun",serif;--r8-sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
html{background:#fbfcf8}
body{isolation:isolate;background:transparent;color:#293b32}
body>main{position:relative;z-index:1}
.app-atmosphere{position:fixed;z-index:0;inset:0;overflow:hidden;pointer-events:none;background:#fbfcf8}
.app-atmosphere::after{content:"";position:absolute;inset:0;background-image:linear-gradient(to bottom,rgba(251,252,248,.64),rgba(251,252,248,.49) 52%,rgba(251,252,248,.08) 82%),url("../../assets/r8/app-background-desktop.png");background-image:linear-gradient(to bottom,rgba(251,252,248,.64),rgba(251,252,248,.49) 52%,rgba(251,252,248,.08) 82%),image-set(url("../../assets/r8/app-background-desktop.f7a62027edd6.avif") type("image/avif"),url("../../assets/r8/app-background-desktop.b96820a3fb80.webp") type("image/webp"),url("../../assets/r8/app-background-desktop.png") type("image/png"));background-position:center bottom;background-repeat:no-repeat;background-size:cover;opacity:.18}
.app-atmosphere::before{content:"";position:absolute;z-index:1;top:4px;right:-22px;width:155px;height:232px;background-image:url("../../assets/r8/bamboo-edge.png");background-image:image-set(url("../../assets/r8/bamboo-edge.65e8fade3a25.avif") type("image/avif"),url("../../assets/r8/bamboo-edge.5b2206eba5b8.webp") type("image/webp"),url("../../assets/r8/bamboo-edge.png") type("image/png"));background-position:center;background-repeat:no-repeat;background-size:contain;opacity:.095;mask-image:linear-gradient(to bottom,#000 0%,#000 65%,transparent)}
body:has(#view-today.active) .app-atmosphere::after{opacity:.68}
body:has(#view-thoughts.active) .app-atmosphere::after{opacity:.35}
body:has(#all-thoughts[data-route-mode="detail"]) .app-atmosphere::after{opacity:.24}
.sidebar{background:rgba(241,245,236,.84);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.home-v02-background{display:none}

@media(min-width:761px){
  .sidebar{width:156px;padding:26px 18px 20px}
  main{margin-left:156px;padding:0 56px 32px}
  .section-nav{height:54px;margin-bottom:0}
  .section-nav>div{height:54px;align-items:center}
  .section-nav button{padding:14px 1px 12px}
  .view{max-width:1250px}
}

.home-v02{--home-paper:#fbfcf8;--home-ink:#293b32;--home-muted:#66796b;--home-moss:#3d6238;--home-sage:#e9f0e2;--home-line:#dce5d8;max-width:1360px;min-height:0}
.home-v02-masthead{min-height:58px;margin:0;padding:21px 0 18px}
.home-v02-brand{gap:10px;font-size:32px}
.home-v02-brand .title-dot{width:7px;height:7px;border:0;border-radius:50%;background:#88a77d;box-shadow:0 0 0 4px #e5edda}
.home-v02-date{font-family:var(--r8-sans);font-size:11px}
.home-v02-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.35fr);grid-template-rows:auto minmax(0,1fr) auto;column-gap:48px;padding:0 0 14px}
.home-v02-actions{grid-column:1;grid-row:1}
.home-v02-primary{min-width:184px;min-height:48px;padding:8px 20px;border:0;border-radius:7px;background:#52764d;color:#fff;font-size:18px;box-shadow:0 6px 16px rgba(61,98,56,.12)}
.home-v02-primary:hover{background:#3d6238}
.home-v02-editorial{grid-column:1;grid-row:2;grid-template-columns:1.07fr .93fr;gap:16px 42px;margin-top:20px}
.home-v02-memory{position:relative}
.home-v02-memory:first-child{padding:7px 0 0}
.home-v02-memory:nth-child(3){padding-top:13px;border-top-color:rgba(210,222,200,.58)}
.home-v02-provenance{margin:0 0 10px;font-size:11px}
.home-v02-memory h2,.home-v02-memory:first-child h2{display:-webkit-box;margin:0 0 8px;overflow:hidden;font-size:25px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.home-v02-excerpt,.home-v02-memory:first-child .home-v02-excerpt{margin:0;font-size:17px;line-height:1.72;-webkit-line-clamp:3}
.home-v02-memory.quote .home-v02-excerpt{font-size:20px;line-height:1.65}
.home-v02-memory>.home-v02-text-action{margin-top:5px;font-size:11px}
.home-v02-memory>.home-v02-text-action::before{content:"";position:absolute;z-index:1;inset:0}
.home-v02-memory:focus-within{outline:2px solid var(--home-moss);outline-offset:5px}
.home-v02-lower{grid-column:2;grid-row:1/3;align-self:start;display:flex;align-items:stretch;flex-direction:column;gap:24px;margin:0}
.home-v02-state{order:-1;align-items:stretch;flex-direction:column;gap:0;max-width:none;padding:0 0 20px;border-bottom:1px solid rgba(210,222,200,.58)}
.home-v02-sparkline{width:100%}
#home-mood-sparkline{height:57px;margin-top:7px}
.home-v02-state-actions{justify-content:space-between}
.home-v02-keepsake-entry{grid-template-columns:80px minmax(110px,1fr) 20px;gap:15px;min-width:0;min-height:132px}
.home-v02-keepsake-preview{width:80px;height:121px}
.home-v02-keepsake-copy{gap:5px}
.home-v02-keepsake-copy strong{font-size:19px}
.home-v02-keepsake-note{display:-webkit-box;overflow:hidden;color:var(--home-muted);font:12px/1.55 var(--home-serif);-webkit-box-orient:vertical;-webkit-line-clamp:2}
.home-v02-secondary{grid-column:1/-1;grid-row:3;margin-top:13px;padding-top:5px}
.home-v02-secondary>summary{min-height:43px;font-size:12px}
.home-v02-secondary[open]{padding:0 14px 14px;border-radius:7px;background:rgba(251,252,248,.88)}

#view-thoughts>.page-header{align-items:center;margin:20px 0 20px;padding-left:0;border-left:0}
#view-thoughts>.page-header h1{font:600 38px/1.2 var(--r8-serif);letter-spacing:0}
#view-thoughts .feed-header-actions{flex-wrap:wrap}
#view-thoughts .feed-search{width:260px;background:rgba(255,255,255,.72)}
#view-thoughts .filter-row{padding-bottom:11px;border-bottom:1px solid rgba(200,211,203,.72)}
#view-thoughts .filter-button{border-color:transparent;background:transparent}
#view-thoughts .filter-button.active{border-color:#dbe6d5;background:#e9f0e2;color:#3d6238}
#view-thoughts .thought-timeline{gap:0;padding-left:82px}
#view-thoughts .thought-timeline::before{left:63px;background:#d7e1d7}
#view-thoughts .thought-month{margin:20px 0 10px -82px;color:#66796b;font:500 12px/1.4 var(--r8-sans)}
#view-thoughts .thought-timeline-entry{padding:7px 0 12px;border-bottom:1px solid rgba(207,218,209,.72)}
#view-thoughts .thought-timeline-entry::after{left:-25px;top:43px;width:9px;height:9px;border-width:2px;box-shadow:0 0 0 4px #fbfcf8}
#view-thoughts .thought-timeline-entry>.timeline-date{right:calc(100% + 35px);top:11px;width:60px;color:#607165;font:500 18px/1 var(--r8-serif)}
#view-thoughts .thought-entry-meta{min-height:20px;margin:0 0 3px}
#view-thoughts .thought-entry-meta time{order:-1;color:#718075;font-size:10px}
#view-thoughts .thought-entry-tags{color:#66796b;font-size:10px;font-weight:600}
#view-thoughts .thought-card{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#view-thoughts .chain-summary{display:block;min-height:102px;padding:0 0 2px;border-radius:0}
#view-thoughts .chain-summary:hover{background:transparent}
#view-thoughts .question-preview{display:-webkit-box;overflow:hidden;font:600 21px/1.45 var(--r8-serif);white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}
#view-thoughts .thought-preview{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin:8px 0 0;color:#445449;font:15px/1.6 var(--r8-serif);white-space:nowrap}
#view-thoughts .thought-preview>span:first-child{padding:4px 8px;border:1px solid #cbdac7;border-radius:5px;color:#52764d;font:600 11px/1.3 var(--r8-sans)}
#view-thoughts .thought-preview>.thought-preview-text{display:block;overflow:hidden;padding:0;border:0;border-radius:0;background:transparent;color:#445449;font:inherit;text-overflow:ellipsis}
#view-thoughts .thought-preview.conclusion>span:first-child{border-color:#52764d;background:#52764d;color:#fff}
#view-thoughts .thought-open-label{display:block;margin-top:7px;color:#3d6238;font-size:11px;text-align:right}
#view-thoughts .chain-summary>.expand-mark{display:none}

#view-thoughts.thought-detail-mode>.page-header{display:none}
#all-thoughts[data-route-mode="detail"]{display:block;padding:0}
#all-thoughts[data-route-mode="detail"]::before,#all-thoughts[data-route-mode="detail"] .thought-detail-entry::after{display:none}
#all-thoughts[data-route-mode="detail"] .thought-detail-entry{padding:0;border:0}
#all-thoughts[data-route-mode="detail"] .thought-detail-record{overflow:visible}
#all-thoughts[data-route-mode="detail"] .chain-summary{display:none}
#all-thoughts[data-route-mode="detail"] .chain-expanded{padding:0;border:0}
.thought-detail-header{padding:26px 0 24px;border-bottom:1px solid #dce5d8}
.thought-detail-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px}
.thought-detail-nav>div{display:flex;align-items:center;gap:13px}
.thought-detail-meta{display:flex;gap:16px;margin:16px 0 12px;color:#66796b;font-size:11px}
.thought-detail-title{max-width:980px;color:#293b32;font:600 32px/1.45 var(--r8-serif)}
.thought-detail-title>*{margin:0}
.thought-more-menu{position:relative}
.thought-more-menu>summary{display:grid;width:44px;height:44px;place-items:center;cursor:pointer;list-style:none;color:#52645a;font-size:16px}
.thought-more-menu>summary::-webkit-details-marker{display:none}
.thought-more-menu>div{position:absolute;z-index:8;top:42px;right:0;display:grid;min-width:170px;padding:6px;border:1px solid #dce5d8;border-radius:7px;background:#fff;box-shadow:0 12px 30px rgba(34,48,43,.12)}
.thought-more-menu button{min-height:40px;padding:8px 10px;text-align:left}
#all-thoughts[data-route-mode="detail"] .thought-content-stream{gap:0;margin:0}
#all-thoughts[data-route-mode="detail"] .thought-content-block{margin:0;padding:25px 0;border:0;border-bottom:1px solid #dce5d8;border-radius:0;background:transparent;overflow:visible}
#all-thoughts[data-route-mode="detail"] .thought-content-block.ai{margin:14px -18px;padding:24px 18px;border:1px solid #e1e2d3;border-left:3px solid #c7c986;border-radius:7px;background:rgba(244,244,233,.91)}
#all-thoughts[data-route-mode="detail"] .thought-content-block.current-conclusion{margin:14px -18px;padding:24px 18px;border:1px solid #cbdac7;border-left:3px solid #52764d;border-radius:7px;background:rgba(234,242,227,.92)}
#all-thoughts[data-route-mode="detail"] .thought-content-block>header{padding:0 0 14px;border:0}
#all-thoughts[data-route-mode="detail"] .thought-content-block>header>div{gap:7px}
#all-thoughts[data-route-mode="detail"] .thought-content-block>header b{font-size:12px}
#all-thoughts[data-route-mode="detail"] .thought-content-block>header small{background:#e7efe1;color:#52764d}
#all-thoughts[data-route-mode="detail"] .thought-identity-icon{display:grid;width:23px;height:23px;place-items:center;padding:0;border:1px solid #cbdac7;border-radius:5px;background:#f7faf4;color:#52764d;font-size:12px}
#all-thoughts[data-route-mode="detail"] .thought-content-block[data-thought-kind="record"] .thought-identity-icon{border-color:#d5ded9;background:#f1f5f3;color:#53665f}
#all-thoughts[data-route-mode="detail"] .thought-content-block.ai .thought-identity-icon{border-color:#d9d5bb;background:#f7f5e9;color:#797744}
#all-thoughts[data-route-mode="detail"] .thought-content-block.current-conclusion .thought-identity-icon{border-color:#52764d;background:#52764d;color:#fff}
#all-thoughts[data-route-mode="detail"] .thought-block-content{padding:0;color:#3f5146;font:17px/1.85 var(--r8-serif)}
#all-thoughts[data-route-mode="detail"] .thought-content-block>footer{padding:12px 0 0;border:0}
#all-thoughts[data-route-mode="detail"] .thought-content-block>footer>div{margin-left:auto}
#all-thoughts[data-route-mode="detail"] .thought-actions{display:flex;align-items:center;justify-content:flex-start;min-height:68px;padding:12px 0}
#all-thoughts[data-route-mode="detail"] .thought-action-grow{gap:24px}
#all-thoughts[data-route-mode="detail"] .thought-action-grow .primary-button{min-height:44px;padding:9px 17px;background:#52764d}

@media(min-width:761px) and (max-height:700px){
  .section-nav,.section-nav>div{height:46px}
  .section-nav button{padding-block:10px}
  .home-v02-masthead{min-height:50px;padding:13px 0 12px}
  .home-v02-editorial{margin-top:15px;row-gap:12px}
  .home-v02-memory h2,.home-v02-memory:first-child h2{font-size:22px}
  .home-v02-excerpt,.home-v02-memory:first-child .home-v02-excerpt{font-size:15px;line-height:1.62;-webkit-line-clamp:2}
  .home-v02-memory.quote .home-v02-excerpt{font-size:17px}
  .home-v02-state{padding-bottom:12px}
  #home-mood-sparkline{height:45px}
  .home-v02-keepsake-entry{min-height:108px}
  .home-v02-keepsake-preview{width:69px;height:102px}
  .home-v02-secondary{margin-top:7px}
}

@media(max-width:760px){
  .app-atmosphere::after{background-image:linear-gradient(to bottom,rgba(251,252,248,.45),rgba(251,252,248,.54) 55%,rgba(251,252,248,.18) 76%,rgba(251,252,248,.02)),url("../../assets/r8/app-background-mobile.png");background-image:linear-gradient(to bottom,rgba(251,252,248,.45),rgba(251,252,248,.54) 55%,rgba(251,252,248,.18) 76%,rgba(251,252,248,.02)),image-set(url("../../assets/r8/app-background-mobile.e8ad4d7f0f47.avif") type("image/avif"),url("../../assets/r8/app-background-mobile.22cba13ff0d1.webp") type("image/webp"),url("../../assets/r8/app-background-mobile.png") type("image/png"));background-position:center bottom}
  .app-atmosphere::before{display:none}
  body:has(#view-today.active) .app-atmosphere::after{opacity:.55}
  main{padding-top:0;padding-right:calc(20px + env(safe-area-inset-right));padding-bottom:calc(77px + env(safe-area-inset-bottom));padding-left:calc(20px + env(safe-area-inset-left))}
  .section-nav{height:44px;margin-bottom:0}
  .section-nav>div{height:44px;align-items:center;gap:27px}
  .section-nav button{min-height:44px;padding:7px 0;font-size:11px}
  .home-v02-masthead{min-height:48px;padding:10px 0;margin:0}
  .home-v02-brand{font-size:28px}
  .home-v02-content{display:block;padding:0}
  .home-v02-actions{align-items:center;flex-wrap:nowrap;margin-bottom:8px}
  .home-v02-primary{width:auto;min-width:0;min-height:44px;padding:7px 15px;font-size:17px}
  .home-v02-actions>#home-shuffle{margin:0 0 0 auto}
  .home-v02-editorial{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 18px;margin:0}
  .home-v02-memory{display:block!important;width:auto;min-width:0;padding:9px 0 0!important;border:0!important}
  .home-v02-memory:first-child{grid-column:1/-1}
  .home-v02-memory:nth-child(2){border-right:1px solid rgba(210,222,200,.58)!important;padding-right:14px!important}
  .home-v02-provenance{margin-bottom:4px;font-size:10px}
  .home-v02-memory h2,.home-v02-memory:first-child h2{margin-bottom:3px;font-size:21px;line-height:1.45;-webkit-line-clamp:2}
  .home-v02-excerpt,.home-v02-memory:first-child .home-v02-excerpt{margin:0;font-size:15px;line-height:1.7;-webkit-line-clamp:2}
  .home-v02-memory:first-child .home-v02-excerpt{-webkit-line-clamp:2}
  .home-v02-memory.quote .home-v02-excerpt{font-size:17px;line-height:1.65}
  .home-v02-memory>.home-v02-text-action{position:absolute;top:0;right:0;width:44px;min-width:44px;height:44px;padding:0;overflow:hidden;color:transparent}
  .home-v02-memory>.home-v02-text-action::after{content:"↗";position:absolute;top:8px;right:3px;color:#52764d;font-size:14px}
  .home-v02-lower{display:grid;grid-template-columns:1fr;gap:0;margin-top:10px;border-top:1px solid rgba(210,222,200,.58)}
  .home-v02-keepsake-entry{grid-template-columns:68px minmax(0,1fr) 18px;gap:14px;min-height:86px}
  .home-v02-keepsake-preview{width:68px;height:85px}
  .home-v02-keepsake-copy strong{font-size:17px}
  .home-v02-keepsake-note{-webkit-line-clamp:1;font-size:10px}
  .home-v02-state{order:initial;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding:8px 0 4px;border-top:1px solid rgba(210,222,200,.58);border-bottom:0}
  #home-mood-sparkline{height:35px;margin-top:2px}
  .home-v02-state-actions{gap:8px}
  .home-v02-state-actions .home-v02-text-action{font-size:10px}
  .home-v02-secondary{margin-top:5px;padding-top:0}
  .home-v02-secondary>summary{min-height:39px;align-items:center;flex-wrap:nowrap}
  .home-v02-secondary>summary small{display:none}
  #view-thoughts>.page-header{margin:12px 0 14px}
  #view-thoughts>.page-header h1{font-size:30px}
  #view-thoughts .feed-header-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%}
  #view-thoughts .feed-search{grid-column:1/-1;width:100%;max-height:none}
  #view-thoughts .thought-sort{width:auto;grid-template-columns:1fr 1fr}
  #view-thoughts .filter-row{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}
  #view-thoughts .filter-row::-webkit-scrollbar{display:none}
  #view-thoughts .filter-button{flex:none}
  #view-thoughts .thought-timeline{padding-left:20px}
  #view-thoughts .thought-timeline::before{left:4px}
  #view-thoughts .thought-month{margin:15px 0 7px -20px}
  #view-thoughts .thought-timeline-entry{padding:5px 0 12px}
  #view-thoughts .thought-timeline-entry::after{left:-21px;top:30px}
  #view-thoughts .thought-timeline-entry>.timeline-date{position:static;width:auto;margin:0 0 2px;font-size:13px;text-align:left}
  #view-thoughts .thought-entry-meta{justify-content:flex-start;gap:10px}
  #view-thoughts .thought-entry-meta time{font-size:10px}
  #view-thoughts .chain-summary{min-height:122px}
  #view-thoughts .question-preview{font-size:19px}
  #view-thoughts .thought-preview{grid-template-columns:1fr;gap:4px;font-size:14px;white-space:normal}
  #view-thoughts .thought-preview>span:first-child{width:max-content}
  #view-thoughts .thought-preview>.thought-preview-text{display:-webkit-box;width:auto;-webkit-box-orient:vertical;-webkit-line-clamp:1}
  .thought-detail-header{padding:11px 0 20px}
  .thought-detail-meta{margin-top:11px;flex-wrap:wrap}
  .thought-detail-title{font-size:27px;line-height:1.52}
  #all-thoughts[data-route-mode="detail"] .thought-content-block{padding:18px 0}
  #all-thoughts[data-route-mode="detail"] .thought-content-block.ai,#all-thoughts[data-route-mode="detail"] .thought-content-block.current-conclusion{margin:8px -10px;padding:18px 10px}
  #all-thoughts[data-route-mode="detail"] .thought-block-content{font-size:17px;line-height:1.8}
  #all-thoughts[data-route-mode="detail"] .thought-actions{position:fixed;z-index:28;right:0;bottom:calc(64px + env(safe-area-inset-bottom));left:0;min-height:58px;padding:7px 18px;border-top:1px solid #dce5d8;background:rgba(251,252,248,.95);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
  #all-thoughts[data-route-mode="detail"] .thought-action-grow{display:grid;width:100%;grid-template-columns:auto 1fr auto;gap:8px}
  #all-thoughts[data-route-mode="detail"] .thought-action-grow button{min-width:0;min-height:44px}
  #all-thoughts[data-route-mode="detail"] .thought-action-grow .primary-button{padding-inline:14px}
  #view-thoughts.thought-detail-mode{padding-bottom:66px}
  body:has(#thought-block-modal:not([hidden])) #all-thoughts[data-route-mode="detail"] .thought-actions,
  body:has(#edit-chain-modal:not([hidden])) #all-thoughts[data-route-mode="detail"] .thought-actions,
  #all-thoughts[data-route-mode="detail"]:has(.followup-form:not([hidden]),.followup-edit-form:not([hidden])) .thought-actions{display:none}
}

@media(max-width:760px) and (max-height:740px){
  .home-v02-masthead{min-height:42px;padding:6px 0}
  .home-v02-brand{font-size:25px}
  .home-v02-actions{margin-bottom:3px}
  .home-v02-editorial{gap:5px 15px}
  .home-v02-memory{padding-top:5px!important}
  .home-v02-memory:first-child h2{font-size:19px;-webkit-line-clamp:2}
  .home-v02-memory:first-child .home-v02-excerpt{-webkit-line-clamp:1}
  .home-v02-excerpt{font-size:14px;line-height:1.55;-webkit-line-clamp:2}
  .home-v02-memory.quote .home-v02-excerpt{font-size:16px}
  .home-v02-keepsake-entry{grid-template-columns:58px minmax(0,1fr) 18px;min-height:72px}
  .home-v02-keepsake-preview{width:58px;height:71px}
  .home-v02-keepsake-note{display:none}
  #home-mood-sparkline{height:30px}
  .home-v02-secondary>summary{min-height:36px}
}

@media(max-width:760px) and (max-height:620px){
  .section-nav,.section-nav>div{height:44px}
  .section-nav button{min-height:44px;padding:4px 0}
  .home-v02-masthead{min-height:37px;padding:3px 0}
  .home-v02-brand{font-size:23px}
  .home-v02-primary{min-height:40px;font-size:15px}
  .home-v02-memory:first-child h2{font-size:18px;-webkit-line-clamp:1}
  .home-v02-provenance{font-size:9px}
  .home-v02-excerpt{font-size:14px;line-height:1.45}
  .home-v02-lower{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center}
  .home-v02-state{border-top:0;border-left:1px solid rgba(210,222,200,.58);padding-left:10px}
  .home-v02-keepsake-entry{grid-template-columns:43px minmax(0,1fr);gap:8px;min-height:62px}
  .home-v02-keepsake-preview{width:43px;height:62px}
  .home-v02-keepsake-copy small,.home-v02-keepsake-arrow{display:none}
  .home-v02-keepsake-copy strong{font-size:15px}
  .home-v02-state-actions{align-items:flex-start;flex-direction:column;gap:0}
  .home-v02-state-actions .home-v02-text-action{min-height:28px}
  #home-mood-sparkline{height:24px}
  .home-v02-secondary{grid-column:1/-1}
}

@media(prefers-reduced-motion:reduce){
  .view.active{animation:none}
  *{scroll-behavior:auto!important}
}
