/* Small, finite gestures and cut-paper details shared by the workbench. */
.page-heading>div:first-child,.atelier-heading>div:first-child{position:relative;min-width:0}
.heading-mark{display:grid;place-items:center;position:absolute;left:0;top:5px;width:36px;height:36px;color:#a13e2d;background:#f6e6d2;border:1px solid #d6b998;box-shadow:2px 2px 0 #e4d1b7;transform:rotate(-5deg);pointer-events:none}
.heading-mark svg{width:23px;height:23px;fill:currentColor;transform:rotate(5deg)}
.page-heading>.marked-heading,.atelier-heading>.marked-heading{padding-left:49px}
.page-heading h1,.atelier-heading h1{overflow-wrap:anywhere}
.page-heading.marked-heading-wrap{padding-bottom:16px;border-bottom:1px solid #ddc8aa}
.page-heading.marked-heading-wrap::after{content:"";position:absolute;width:38px;height:3px;left:0;bottom:-2px;background:#a44431}
.page-heading{position:relative}
.page-heading p,.atelier-heading p{max-width:54ch;line-height:1.55}
.page .button,.page .text-link,.page button,.page summary,.section-nav a,.sidebar nav a{touch-action:manipulation}
.page .button,.page .text-link,.page button:not([disabled]),.section-nav a,.sidebar nav a{transition:color .17s ease,background-color .17s ease,border-color .17s ease,box-shadow .17s ease,translate .17s ease}
.page .button:not(:disabled):active,.page button:not(:disabled):active{translate:0 1px}
.page button:focus-visible,.page a:focus-visible,.section-nav a:focus-visible,.sidebar nav a:focus-visible{outline:2px solid #a44431;outline-offset:3px}
.page :is(.creation-modes,.draft-tabs,.atelier-chapters,.community-tools) button[aria-pressed=true]{box-shadow:inset 0 -2px 0 #ab452f}
.page :is(.creation-modes,.draft-tabs,.atelier-chapters,.community-tools) button:not([aria-pressed=true]):hover{background-color:#f3e8d7}
.page :is(.motif-card,.paper-note-card,.heritage-pattern,.heritage-person,.heritage-news-item,.saved-work):focus-within{outline:2px solid #b86a4b;outline-offset:2px}
.page :is(.motif-card,.paper-note-card,.heritage-pattern,.heritage-person,.heritage-news-item):hover{translate:0 -2px}
.paper-note-card,.motif-card,.heritage-pattern,.heritage-person,.heritage-news-item{transition:translate .2s ease,box-shadow .2s ease}
.page .paper-form p,.page .atelier-story p,.page .tradition-copy p,.page .motif-detail-copy p{max-width:68ch;line-height:1.65}
.page :is(.review-prose,.reading-copy,.dictionary-answer,.note-copy)>p{line-height:1.7}
.page details>summary{min-height:40px;display:list-item;align-content:center;text-underline-offset:4px}
.page details[open]>summary{color:#883a2b}
#page-works .saved-work h3{min-height:0;margin-bottom:9px;text-wrap:pretty;line-height:1.42}
#page-works .saved-work .work-actions{margin-top:auto}
#page-practice .training-readings{grid-template-columns:repeat(5,minmax(0,1fr))}
#page-practice .practice-settings{background:#fbf5e9;border:1px solid #ddc9ab;padding:10px 16px}
#page-practice .practice-settings>summary{font-size:14px;color:#83412f;font-weight:600}
#page-practice .practice-settings[open]{box-shadow:0 8px 20px #51341a0d}
#page-practice .practice-keepsake{background:linear-gradient(135deg,#fffaf0 0%,#f7eedc 100%);box-shadow:0 12px 26px #60402b12}
#page-practice .keepsake-observations p{border-left:2px solid #c78960;padding:6px 0 6px 12px;margin:9px 0}
#page-practice .keepsake-observations h3{margin:14px 0 8px}
#page-practice .video-review-segment{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;padding:11px 0}
#page-practice .video-review-segment button{text-align:left;justify-self:start}
#page-inspect .inspection-result{background:#fffaf1;border-left:3px solid #ab4b35}
#page-inspect .inspection-result .review-prose{max-width:68ch;line-height:1.7}
#page-ai .ink-form-bottom.ask-actions{justify-content:flex-end}
#page-ai .draft-volume .draft-sheet,#page-ai .photo-images figure{box-shadow:0 8px 22px #60402b12}
#page-community .note-compose-launch>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#page-community .note-compose-launch h2{margin:0}
#page-community .note-compose-launch p{margin:0;color:#947b63;font-size:12px}
#page-profile .growth-history>summary{font-size:14px}
@media (prefers-reduced-motion:no-preference){
  @keyframes xj-page-enter{from{opacity:.65;translate:0 8px}to{opacity:1;translate:0 0}}
  @keyframes xj-panel-enter{from{opacity:.7;translate:0 5px}to{opacity:1;translate:0 0}}
  .page:not([hidden])>.page-heading,.page:not([hidden])>.atelier-heading,.page:not([hidden])>.welcome{animation:xj-page-enter .3s ease-out both}
  .page:not([hidden])>:is(.creation-modes,.paper-atelier,.ink-desk,.training-window,.video-form,.inspection-grid,.saved-gallery,.scene-sandbox,.community-tools,.profile-cover){animation:xj-panel-enter .33s ease-out both}
}
@media(max-width:760px){
  .heading-mark{width:31px;height:31px;top:4px}.heading-mark svg{width:20px;height:20px}
  .page-heading>.marked-heading,.atelier-heading>.marked-heading{padding-left:41px}
  #page-practice .training-readings{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
  #page-practice .training-readings>div{border-left:0;border-bottom:1px solid #dfceb7;padding:7px 0}
  #page-practice .segmented button{min-height:44px}
}
@media(max-width:600px){
  #page-ai .ink-seal{display:none}
  #page-ai .ink-heading{margin-bottom:14px}
  #page-works .saved-work .work-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  #page-works .saved-work .work-action{min-height:40px;white-space:normal;text-align:center;font-size:12px}
  #page-works .saved-work .work-action:last-child:nth-child(odd){grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){
  .page .button,.page .text-link,.page button,.section-nav a,.sidebar nav a,.paper-note-card,.motif-card,.heritage-pattern,.heritage-person,.heritage-news-item{animation:none!important;transition:none!important;translate:none!important}
}
.xr-entry[hidden],.xr-entry #scene-xr-support[hidden]{display:none}
