/* Shared, clearly actionable reactions; leave the paper and reading layout intact. */
.room-system .daily-like,.room-system .community-like{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;min-height:30px;padding:5px 9px!important;border:1px solid #c6b8a2!important;border-radius:7px!important;background:linear-gradient(#fffef9,#f1ebdf)!important;color:#68543f!important;font:600 11px/1.2 'Apple SD Gothic Neo',sans-serif!important;box-shadow:inset 0 1px 0 #fff,0 1px 2px #57492f15;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.room-system .daily-like .reaction-heart,.room-system .community-like .like-heart{font:20px/1 sans-serif!important;color:#a65d50}
.room-system .reaction-count{font-variant-numeric:tabular-nums;min-width:8px}
.room-system .daily-like[aria-pressed=true],.room-system .community-like[aria-pressed=true]{border-color:#b37564!important;background:linear-gradient(#fff1e9,#f4dfd3)!important;color:#8a463a!important;box-shadow:inset 0 1px 2px #974b3b15}
.room-system .daily-like[aria-pressed=true] .reaction-heart,.room-system .community-like[aria-pressed=true] .like-heart{color:#ae5144}
.room-system .daily-like:focus-visible,.room-system .community-like:focus-visible{outline:2px solid #9b654f;outline-offset:3px}
.room-system .daily-like:disabled{opacity:.6;cursor:wait}
#relay.room-system .line-like{right:0;bottom:5px;min-height:28px;padding:3px 8px!important}
#relay.room-system .sentence-credit{padding-right:92px;min-height:14px}
#stories.room-system .memo-paper>.daily-like{right:7%;bottom:3%;z-index:3;min-height:30px;padding:4px 9px!important}
#stories.room-system .memo-time{max-width:calc(100% - 88px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#poetry.room-system .poetry-paper-footer{min-height:30px;bottom:8px}
#poetry.room-system .poetry-paper-footer>small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(hover:hover){.room-system .daily-like:hover,.room-system .community-like:hover{border-color:#a47b61!important;background:#fff4e5!important;box-shadow:inset 0 1px 0 #fff,0 2px 5px #57492f20}}
@media(max-width:600px){.room-system .daily-like,.room-system .community-like{gap:4px;min-height:28px;padding:4px 7px!important;font-size:10px!important}#stories.room-system .memo-time{max-width:calc(100% - 78px)}#poetry.room-system .poetry-paper-footer{left:12px;right:12px}}
@media(prefers-reduced-motion:reduce){.room-system .daily-like,.room-system .community-like{transition:none}}
body[data-room-view] #stories.story-classroom.room-system .collection-board .memo-writing-area:has(.memo-message) .memo-time{bottom:8%!important;max-width:none!important;padding:0!important;right:88px!important}

@media(max-width:600px){body[data-room-view] #stories.story-classroom.room-system .collection-board .memo-writing-area:has(.memo-message) .memo-time{right:78px!important}}



@media(max-width:600px){#stories.room-system .memo-paper>.daily-like{padding:4px 7px!important}}
/* Keep actions above a full-width author line on every 101 note. */

body[data-room-view] #stories.story-classroom.room-system .collection-board .memo-paper:nth-child(n) .memo-writing-area .memo-time{left:0!important;right:0!important;bottom:4%!important;width:100%;max-width:100%!important;padding:0!important;margin:0!important;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#stories.room-system .collection-board .memo-paper:nth-child(n)>.daily-comment,
#stories.room-system .collection-board .memo-paper:nth-child(n)>.daily-like{top:auto!important;bottom:26px!important;min-height:24px;height:24px;padding:3px 5px!important;font-size:10px!important}
#stories.room-system .collection-board .memo-paper:nth-child(n)>.daily-like{left:8%!important;right:auto!important}
#stories.room-system .collection-board .memo-paper:nth-child(n)>.daily-comment{right:7%!important;left:auto!important}
@media(max-width:350px){#stories.room-system .collection-board .memo-paper>.daily-like .reaction-label{display:none}}
/* Keep manuscript and identity/actions in separate normal-flow rows. */
body[data-room-view] #poetry.story-classroom.room-system .poetry-paper:not(.poetry-blank){height:auto!important;min-height:min-content!important;justify-content:center;padding-bottom:12px!important}
body[data-room-view] #poetry.story-classroom.room-system .poetry-paper .poetry-lines{flex:0 0 auto}
body[data-room-view] #poetry.story-classroom.room-system .poetry-paper-footer{position:static!important;inset:auto!important;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;min-height:30px;margin:12px 0 0!important;gap:10px;line-height:1.4}
body[data-room-view] #poetry.story-classroom.room-system .poetry-paper-footer>small{display:block;flex:1;min-width:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-room-view] #poetry.story-classroom.room-system .poetry-paper-footer .daily-like{flex:0 0 auto}

/* Each heart, label and count is geometrically centered within the same button. */
#stories.room-system .collection-board .memo-paper:nth-child(n)>.daily-like,
#stories.room-system .collection-board .memo-paper:nth-child(n)>.daily-comment{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;height:24px!important;min-height:24px!important;padding:0 5px!important;line-height:1!important}
#stories.room-system .collection-board .memo-paper>.daily-like>span{position:static!important;inset:auto!important;transform:none!important;margin:0!important;padding:0!important;align-self:center!important}
#stories.room-system .collection-board .memo-paper>.daily-like .reaction-heart{display:inline-flex!important;align-items:center;justify-content:center;width:16px;height:16px;flex:0 0 16px;line-height:0!important}
.room-system .daily-like .reaction-heart svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.room-system .daily-like[aria-pressed=true] .reaction-heart svg{fill:currentColor}
#stories.room-system .collection-board .memo-paper>.daily-like :is(.reaction-label,.reaction-count){display:inline-flex;align-items:center;justify-content:center;height:14px;line-height:14px!important;font-size:10px!important}
@media(max-width:350px){#stories.room-system .collection-board .memo-paper>.daily-like .reaction-label{display:none!important}}

.room-entry-author{
 min-width:0;
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
}
.room-entry-time{
 flex:none;
 color:#555c51;
 font-variant-numeric:tabular-nums;
 white-space:nowrap;
}
body[data-room-view] #stories.story-classroom.room-system .collection-board .memo-entry-byline{
 display:flex!important;
 align-items:baseline;
 justify-content:space-between;
 gap:4px;
}
body[data-room-view] #poetry.story-classroom.room-system .poetry-paper-footer .poetry-entry-byline{
 display:flex;
 flex-direction:column;
 align-items:flex-start;
 gap:1px;
}
#poetry .poetry-entry-byline .room-entry-author{max-width:100%;white-space:normal;overflow-wrap:anywhere}
#poetry .poetry-entry-byline .room-entry-time{font-size:10px}

.room-system .daily-card-reactions {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 4px;
 min-width: 0;
}
#stories.room-system .memo-paper > .daily-card-reactions {
 position: absolute;
 inset: auto 8% 26px;
 z-index: 3;
}
.room-system .poetry-paper-footer .daily-card-reactions {
 flex: 0 1 204px;
 margin-left: auto;
}
@media (max-width: 600px) {
 #poetry .poetry-paper-footer .daily-card-reactions {flex-basis: 52%;}
}
#poetry .poetry-paper-footer .daily-card-reactions > .daily-own-edit {
 margin: 0 !important;
 width: 100% !important;
 height: auto !important;
 align-self: stretch;
 justify-self: stretch;
}
body[data-room-view] #poetry.story-classroom.room-system .poetry-paper:not(.poetry-blank) {
 aspect-ratio: auto;
 padding-block: 6px !important;
 min-height: 0 !important;
}
body[data-room-view] #poetry.story-classroom.room-system .poetry-paper-footer {
 position: static;
 margin-block-start: 5px !important;
}
body[data-room-view] #poetry.story-classroom.room-system .poetry-grid {gap: 10px 14px !important; padding-block: 0 !important;}
body[data-room-view] #poetry.story-classroom.room-system .poetry-scroll {padding-block: 8px 6px !important;}

@media (min-width: 1051px) {
 body[data-room-view] #poetry.story-classroom.room-system .poetry-scroll {container-type: size;}
 body[data-room-view] #poetry.story-classroom.room-system .poetry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(min-content, calc((100cqh - 15px) / 2));
 }
}
