/* JakSky | Comment & Reply Refresh v5. Visual-only, scoped to video/comment modal.
   Warm porcelain + cocoa. No animation loop, no blur, no external dependency. */
:root{--jcm5-bg:#f7f3ed;--jcm5-paper:#fffdf9;--jcm5-card:#fbf8f4;--jcm5-text:#302720;--jcm5-muted:#6f6258;--jcm5-line:#d7c9bc;--jcm5-cocoa:#5c4338;--jcm5-accent:#a47659}
html body #modal{background:rgba(22,18,16,.64)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;overscroll-behavior:contain!important}
html body #modal .modalBox{
  box-sizing:border-box!important;width:min(100%,660px)!important;max-width:660px!important;
  margin:12px auto max(12px,env(safe-area-inset-bottom,0px))!important;
  padding:14px clamp(14px,4vw,24px) 22px!important;
  background:var(--jcm5-bg)!important;color:var(--jcm5-text)!important;
  border:1px solid #eadfd6!important;border-radius:24px!important;
  box-shadow:0 18px 56px rgba(20,13,10,.24)!important;
  overflow-x:hidden!important
}
html body #modal .modalBox>.closeBtn{
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  float:right!important;position:relative!important;top:auto!important;right:auto!important;
  width:44px!important;height:44px!important;min-height:44px!important;margin:0 0 6px 12px!important;
  padding:0!important;border-radius:13px!important;background:#e9ddd2!important;
  border:1px solid #d4c3b4!important;color:#382b23!important;font-size:25px!important;
  font-weight:500!important;box-shadow:none!important;text-shadow:none!important
}
html body #modal .modalBox>.closeBtn:focus-visible{outline:3px solid #b7794e!important;outline-offset:3px!important}
html body #modal .jakCommentHead{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:12px 0 12px!important;margin:6px 0 8px!important;border-bottom:1px solid var(--jcm5-line)!important;background:transparent!important;box-shadow:none!important}
html body #modal .jakCommentHeadMain{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
html body #modal .jakCommentHeadIcon{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;border-radius:12px!important;background:#e8ddd3!important;box-shadow:none!important}
html body #modal .jakCommentHeadIcon img{max-width:24px!important;max-height:24px!important}
html body #modal .jakCommentHeadText{min-width:0!important}
html body #modal .jakCommentHeadText h3,html body #modal .modalBox>h3{color:var(--jcm5-text)!important;letter-spacing:-.025em!important;font-size:19px!important;line-height:1.25!important;margin:0!important;text-shadow:none!important}
html body #modal .jakCommentHeadText small{display:block!important;color:var(--jcm5-muted)!important;font-size:12px!important;line-height:1.4!important;margin-top:2px!important}
html body #modal .jakCommentCount{background:#efe6db!important;color:#4f382c!important;border:1px solid #dbc9ba!important;border-radius:9px!important;min-width:30px!important;min-height:30px!important;display:grid!important;place-items:center!important;font-size:12px!important;box-shadow:none!important}
html body #modal #comments{display:block!important;max-width:100%!important;min-width:0!important;color:var(--jcm5-text)!important;padding:0 0 2px!important}
html body #modal #comments>.comment{
  position:relative!important;box-sizing:border-box!important;display:block!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:11px 0!important;padding:15px!important;
  background:var(--jcm5-paper)!important;background-image:none!important;
  color:var(--jcm5-text)!important;border:1px solid #e1d5c9!important;
  border-radius:17px!important;box-shadow:0 2px 7px rgba(54,38,24,.04)!important;
  filter:none!important;text-shadow:none!important
}
html body #modal #comments .comment .commentUserName{
  color:#342820!important;-webkit-text-fill-color:#342820!important;
  font-size:14px!important;line-height:1.5!important;font-weight:780!important;
  text-shadow:none!important;opacity:1!important
}
html body #modal #comments .comment>p,html body #modal #comments .comment>.replyBodyText{
  display:block!important;color:#3a302a!important;-webkit-text-fill-color:#3a302a!important;
  font-size:15px!important;line-height:1.58!important;font-weight:400!important;
  overflow-wrap:anywhere!important;margin:12px 0!important;opacity:1!important
}
html body #modal #comments .comment>small{color:#75675e!important;-webkit-text-fill-color:#75675e!important;font-size:11px!important;line-height:1.4!important}
html body #modal #comments .comment .commentAvatarV2{max-width:40px!important;max-height:40px!important;object-fit:cover!important}
html body #modal #comments .comment .replyComment{
  box-sizing:border-box!important;margin:13px 0 1px!important;padding:13px 13px 11px!important;
  min-width:0!important;width:100%!important;max-width:100%!important;
  border:1px solid #e3d3c5!important;border-left:3px solid #ad8263!important;
  border-radius:13px!important;background:#f3eae1!important;background-image:none!important;
  box-shadow:none!important;color:var(--jcm5-text)!important
}
html body #modal #comments .comment .replyComment::before,html body #modal #comments .comment .replyComment::after{display:none!important;content:none!important}
html body #modal #comments .replyContext{
  padding:9px 11px!important;margin:9px 0 7px!important;
  background:#eae0d6!important;background-image:none!important;border:1px solid #dccab9!important;
  border-radius:10px!important;box-shadow:none!important;min-width:0!important
}
html body #modal #comments .replyContextLabel,html body #modal #comments .replyContextLabel b{color:#684937!important;-webkit-text-fill-color:#684937!important;white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important;font-size:11px!important}
html body #modal #comments .replyContextQuote{color:#5e5149!important;-webkit-text-fill-color:#5e5149!important;font-size:12px!important;line-height:1.45!important;margin:5px 0 0!important;padding-left:0!important;overflow-wrap:anywhere!important}
html body #modal #comments .replyContextArrow{color:#654b3b!important;background:#d8c4b2!important;box-shadow:none!important}
html body #modal #comments .comment>button.commentAction,html body #modal #comments .comment>button[onclick*="replyAnyComment"],html body #modal #comments .comment>button[onclick*="delete"]{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;min-height:44px!important;min-width:88px!important;
  margin:4px 8px 3px 0!important;padding:9px 14px!important;
  border-radius:10px!important;border:1px solid #cebbaa!important;
  background:#efe5da!important;color:#443329!important;font-size:13px!important;
  font-weight:670!important;box-shadow:none!important;letter-spacing:0!important;text-shadow:none!important
}
html body #modal #comments .comment>button.commentAction.replyAction,html body #modal #comments .comment>button[onclick*="replyAnyComment"]{background:#654d40!important;color:#fffaf5!important;border-color:#654d40!important}
html body #modal #comments .comment>button.commentAction.deleteAction,html body #modal #comments .comment>button[onclick*="delete"]{background:#fff5f0!important;color:#873e32!important;border-color:#d8b4aa!important}
html body #modal #comments .comment.replyComment>button.commentAction.replyAction,html body #modal #comments .comment.replyComment>button[onclick*="replyAnyComment"]{background:#fffaf5!important;color:#5f4639!important;border-color:#cdb8a7!important}
html body #modal #comments .comment>button.commentAction::before,html body #modal #comments .comment>button.commentAction::after{display:none!important;content:none!important}
html body #modal #comments .comment>button:focus-visible,html body #modal .jakCommentComposer button:focus-visible{outline:3px solid #ab7558!important;outline-offset:2px!important}
html body #modal .jakCommentComposer{display:flex!important;align-items:center!important;gap:9px!important;padding:14px 0 2px!important;margin:12px 0 0!important;border-top:1px solid var(--jcm5-line)!important;background:transparent!important}
html body #modal .jakCommentComposer input#ctext,html body #modal #ctext.commentInput{box-sizing:border-box!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;min-height:48px!important;padding:12px 14px!important;margin:0!important;border:1px solid #cdbbac!important;border-radius:12px!important;background:#fffdf9!important;color:#332b26!important;-webkit-text-fill-color:#332b26!important;font-size:16px!important;caret-color:#77513e!important;box-shadow:none!important}
html body #modal .jakCommentComposer .sendBtn{flex:0 0 auto!important;min-height:48px!important;margin:0!important;padding:10px 16px!important;border-radius:12px!important;background:#5c4338!important;color:#fffaf5!important;border:1px solid #5c4338!important;box-shadow:none!important;font-size:13px!important;font-weight:700!important}
html body #modal .jakCommentComposer input#ctext:focus-visible{outline:3px solid #c0957c!important;outline-offset:2px!important}
html body #modal .jakCommentComposer input#ctext::placeholder{color:#81756d!important;-webkit-text-fill-color:#81756d!important;opacity:1!important}
/* Reply prompt: preserve V73 VisualViewport logic; change visual styling only. */
html.jakPerf73 body.jakReplyDialogOpen #jakDialogOverlay,html body.jakReplyDialogOpen #jakDialogOverlay{background:rgba(18,15,14,.71)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.jakPerf73 body.jakReplyDialogOpen #jakDialogOverlay .jakDialogBox,html body.jakReplyDialogOpen #jakDialogOverlay .jakDialogBox{
  box-sizing:border-box!important;width:min(92vw,450px)!important;max-width:450px!important;
  background:#f9f5ef!important;border:1px solid #e2d3c5!important;
  border-radius:20px!important;padding:20px!important;text-align:left!important;
  box-shadow:0 18px 44px rgba(21,14,10,.32)!important;filter:none!important
}
html body.jakReplyDialogOpen #jakDialogOverlay .jakDialogIcon{display:inline-grid!important;place-items:center!important;width:40px!important;height:40px!important;margin:0 0 9px!important;border-radius:12px!important;background:#e9ddd1!important;color:#624739!important;box-shadow:none!important;font-size:21px!important}
html body.jakReplyDialogOpen #jakDialogOverlay h3{color:#302720!important;-webkit-text-fill-color:#302720!important;font-weight:780!important;font-size:19px!important;line-height:1.3!important;margin:0 0 7px!important;text-align:left!important}
html body.jakReplyDialogOpen #jakDialogOverlay #jakDialogMessage{color:#65574d!important;-webkit-text-fill-color:#65574d!important;white-space:pre-line!important;text-align:left!important;font-size:13px!important;line-height:1.48!important;margin:0 0 12px!important;max-height:90px!important;overflow-y:auto!important;overflow-wrap:anywhere!important}
html body.jakReplyDialogOpen #jakDialogOverlay #jakDialogInput{box-sizing:border-box!important;display:block!important;width:100%!important;min-height:110px!important;max-height:27vh!important;margin:0 0 14px!important;padding:13px 14px!important;resize:vertical!important;border:1px solid #c9b6a5!important;border-radius:12px!important;background:#fffdf9!important;color:#302720!important;-webkit-text-fill-color:#302720!important;caret-color:#5b4134!important;font-size:16px!important;line-height:1.5!important;box-shadow:none!important}
html body.jakReplyDialogOpen #jakDialogOverlay #jakDialogInput::placeholder{color:#81736a!important;-webkit-text-fill-color:#81736a!important;opacity:1!important}
html body.jakReplyDialogOpen #jakDialogOverlay #jakDialogInput:focus-visible{outline:3px solid #b98c71!important;outline-offset:1px!important}
html.jakPerf73 body.jakReplyDialogOpen #jakDialogOverlay .jakDialogActions,html body.jakReplyDialogOpen #jakDialogOverlay .jakDialogActions{display:flex!important;gap:9px!important;padding:0!important;margin-top:3px!important;background:transparent!important;box-shadow:none!important}
html body.jakReplyDialogOpen #jakDialogOverlay .jakDialogActions button{flex:1 1 0!important;min-width:0!important;min-height:44px!important;padding:10px 9px!important;margin:0!important;border:1px solid #cdbbaa!important;border-radius:11px!important;font-size:14px!important;line-height:1.3!important;box-shadow:none!important;text-shadow:none!important}
html body.jakReplyDialogOpen #jakDialogOverlay .jakDialogActions .jakDialogCancel{background:#ece1d5!important;color:#44352d!important}
html body.jakReplyDialogOpen #jakDialogOverlay .jakDialogActions .jakDialogOk{background:#5c4338!important;color:#fffdf9!important;border-color:#5c4338!important}
html body.jakReplyDialogOpen #jakDialogOverlay .jakDialogActions button:focus-visible{outline:3px solid #b78968!important;outline-offset:2px!important}
html.jakPerf73 body.jakReplyKeyboardOpen #jakDialogOverlay .jakDialogBox{padding:14px!important;border-radius:17px!important}
html.jakPerf73 body.jakReplyKeyboardOpen #jakDialogOverlay #jakDialogInput{min-height:58px!important;max-height:86px!important;margin:0 0 9px!important;padding:10px 12px!important}
@media(max-width:360px){html body #modal .modalBox{padding-left:12px!important;padding-right:12px!important;border-radius:18px!important}html body #modal .jakCommentComposer{gap:7px!important}html body #modal .jakCommentComposer .sendBtn{padding-inline:12px!important}}
@media(prefers-reduced-motion:reduce){html body #modal *,html body.jakReplyDialogOpen #jakDialogOverlay *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
