/* SHEM EANSIT — Editorial spacing correction (Oct 20, 2026)
   Based on actual iPhone screenshot of saved Clarity Plans in Private.
   ONE typography/spacing rhythm; no changes to user data or app layout logic.
   Retain all approved editorial photography, color and arrival animations. */
:root{
  --se-space-xs:6px;
  --se-space-sm:10px;
  --se-space-md:14px;
  --se-space-lg:18px;
  --se-space-xl:24px;
  --se-copy-size:14px;
  --se-copy-leading:1.52;
}
/* The fixed Quick Exit remains accessible while browsing. The faint editorial
   header is revealed only once the page scrolls, keeping the button from
   visually sitting on top of sensitive saved-plan paragraphs. */
html[data-se-scroll-state="scrolled"] #app.app-shell::before{
  content:"";
  position:fixed;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:min(100%,430px);
  height:calc(66px + env(safe-area-inset-top,0px));
  z-index:1600;
  pointer-events:none;
  background:linear-gradient(180deg,#f5efe8 0%,rgba(245,239,232,.98) 83%,rgba(245,239,232,0) 100%);
}
#main.with-nav{
  padding-bottom:calc(116px + env(safe-area-inset-bottom,0px))!important;
  scroll-padding-top:calc(76px + env(safe-area-inset-top,0px));
}
#main .tool-stack{gap:12px!important}
#main .tool-stack>.tool-panel{
  padding:17px 17px 18px!important;
}
#main .tool-stack>.tool-panel>.eyebrow{
  margin:0 0 7px!important;
  padding:0!important;
}
#main .tool-stack>.tool-panel>h3{
  margin:0 0 10px!important;
  font-size:clamp(24px,6.3vw,29px)!important;
  line-height:1.17!important;
}
#main .tool-panel .se-plan-link-hint{
  margin:2px 0 10px!important;
  font-size:12px!important;
  line-height:1.48!important;
  color:#554742!important;
}
#main .tool-panel .plan-entry{
  border-top:1px solid #ded0c7!important;
  border-bottom:0!important;
  padding:13px 0 12px!important;
  margin:0!important;
  min-width:0;
}
#main .tool-panel .plan-entry>h4{
  font:400 clamp(23px,6vw,27px)/1.2 "Italiana",Georgia,serif!important;
  margin:0 0 7px!important;
  letter-spacing:.003em!important;
  overflow-wrap:anywhere;
}
#main .tool-panel .plan-entry>p{
  font:400 14px/1.5 "DM Sans",sans-serif!important;
  color:#554742!important;
  margin:0 0 12px!important;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
#main .tool-panel .plan-entry .moves{
  display:grid!important;
  gap:0!important;
  margin:0 0 13px!important;
  border-top:1px solid rgba(103,45,67,.15);
  min-width:0;
}
#main .tool-panel .plan-entry .move{
  display:grid!important;
  grid-template-columns:27px minmax(0,1fr)!important;
  align-items:start!important;
  column-gap:11px!important;
  min-width:0!important;
  padding:11px 0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid rgba(103,45,67,.15)!important;
  border-radius:0!important;
  box-shadow:none!important;
  transform:none!important;
}
#main .tool-panel .plan-entry .move>b{
  display:block!important;
  color:#a76d70!important;
  font:italic 20px/1.32 "Italiana",Georgia,serif!important;
  letter-spacing:0!important;
  padding-top:0!important;
}
#main .tool-panel .plan-entry .move>p{
  font:400 13.5px/1.5 "DM Sans",sans-serif!important;
  color:#453b38!important;
  margin:0!important;
  padding:0!important;
  min-width:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
#main .tool-panel .plan-entry>.entry-actions{
  margin-top:9px!important;
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
#main .tool-panel .plan-entry>.entry-actions button{
  min-height:44px!important;
  padding:10px 13px!important;
  line-height:1.3!important;
  font-size:12px!important;
  flex:0 1 auto;
  white-space:normal;
}
#main .tool-panel .journal-entry{
  padding:12px 0!important;
  margin:0!important;
}
#main .tool-panel .journal-entry h4{
  margin:0 0 5px!important;
  font-size:19px!important;
  line-height:1.3!important;
}
#main .tool-panel .journal-entry p{
  font:400 13.5px/1.5 "DM Sans",sans-serif!important;
  margin:7px 0 10px!important;
  white-space:pre-wrap;
}
#main .tool-panel .journal-entry .entry-actions{
  display:flex;flex-wrap:wrap;gap:8px;margin-top:9px;
}
#main .tool-panel .saved-chip{
  margin-top:7px!important;
  padding:10px 0!important;
  border-left:0!important;border-right:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
/* GUIDE: maintain the signature introduction; keep the response and the
   three numbered actions legible but free of excessive nested framing. */
#main .guide-moves{display:grid!important;gap:0!important;margin:6px 0 17px!important}
#main .guide-moves>.guide-move{
  padding:13px 0!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid rgba(103,45,67,.16)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  min-width:0;
}
#main .guide-move>p{
  font-size:14px!important;
  line-height:1.52!important;
  margin:0!important;
  overflow-wrap:anywhere;
}
#main .guide-response-card>p,
#main .guide-you-summary>p{
  font-size:14px!important;
  line-height:1.52!important;
}
#main .guide-result-intro{margin-bottom:12px!important}
#main .guide-moves-title{margin:18px 0 5px!important}
/* EXPLORE: tidy editorial directory rhythm; do not hide urgent actions. */
#main .ref-resource{
  padding-top:11px!important;
  padding-bottom:11px!important;
  min-height:0!important;
}
#main .resource-level{margin-bottom:17px!important}
#main .resource-level-head{margin:0 0 11px!important;padding-bottom:10px!important}
#main .resource-grid{gap:9px!important}
#main .resource-card{padding:15px!important}
#main .resource-card>h3{margin:5px 0 6px!important}
#main .resource-card>p{font-size:13px!important;line-height:1.49!important}
#main .resource-card .source-line{margin-top:8px!important}
/* COMMUNITY: conversation rows sit like editorial lines, not giant tiles. */
#main .ol-community-hero{padding-bottom:15px!important;margin-bottom:9px!important}
#main .ol-community-toolbar{padding-top:14px!important;margin-top:12px!important}
#main .ol-community-row-main{padding:11px 0!important;min-height:0!important}
#main .ol-community-copy strong{line-height:1.26!important}
#main .ol-community-copy small{margin-top:5px!important}
#main .ol-community-safety{padding:13px 0!important}
@media(max-width:350px){
  #main .tool-stack>.tool-panel{padding:14px!important}
  #main .tool-panel .plan-entry .move{grid-template-columns:24px minmax(0,1fr)!important;gap:9px!important}
  #main .tool-panel .plan-entry .move>p{font-size:13px!important}
  #main .resource-card{padding:12px!important}
}
@media(prefers-reduced-motion:reduce){
  #main .tool-panel .plan-entry .move{animation:none!important}
}