/* LynxLynkr compact media-enabled reply toolbar — Phase 1. */
.ajax-comment-form.lynx-reply-enhanced,
.feed-post-actions .quick-reply-form.lynx-reply-enhanced,
.profile-feed-post-actions .profile-comment-form.lynx-reply-enhanced {
  display:block !important; width:100% !important; min-width:0 !important;
  align-self:stretch; margin:0; flex:1 1 100%; grid-column:1 / -1;
}
.lynx-reply-shell {width:100%;min-width:0;padding:7px 9px;border:1px solid rgba(212,175,55,.28);border-radius:12px;background:#101010;color:#f5ecda;box-sizing:border-box;}
.lynx-reply-enhanced .lynx-reply-field,
.lynx-reply-enhanced input.lynx-reply-field,
.lynx-reply-enhanced textarea.lynx-reply-field {display:block!important;width:100%!important;min-width:0!important;max-width:100%;height:auto;min-height:36px;margin:0!important;padding:8px 6px!important;border:0!important;outline:none!important;box-shadow:none!important;border-radius:6px;background:#101010!important;color:#f6f0e4!important;font:inherit!important;font-size:.91rem!important;line-height:1.5;resize:vertical;box-sizing:border-box;}
.lynx-reply-field::placeholder {color:#9c9381!important;}
.lynx-reply-toolbar {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:5px 2px 0;border-top:1px solid rgba(212,175,55,.16);}
.lynx-reply-tools {display:flex;align-items:center;gap:5px;min-width:0;}
.lynx-reply-enhanced .lynx-reply-icon {display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;width:33px!important;min-width:33px!important;height:31px!important;min-height:31px!important;padding:4px!important;border:1px solid transparent!important;border-radius:7px!important;background:transparent!important;color:#d6b45e!important;box-shadow:none!important;cursor:pointer;font-weight:800;font-size:13px!important;line-height:1!important;}
.lynx-reply-icon svg {width:18px;height:18px;display:block;}
.lynx-reply-icon:hover,.lynx-reply-icon:focus-visible {background:rgba(212,175,55,.14)!important;border-color:rgba(212,175,55,.37)!important;outline:none;}
.lynx-reply-enhanced .lynx-reply-gif {width:38px!important;min-width:38px!important;font-size:12px!important;letter-spacing:-.02em;border:1px solid rgba(212,175,55,.45)!important;}
.lynx-reply-smiley-mark {font-size:20px;line-height:1;}
.lynx-reply-enhanced .lynx-reply-post {width:auto!important;min-width:62px!important;min-height:33px!important;margin:0!important;padding:7px 12px!important;border:1px solid #d4ac52!important;border-radius:8px!important;background:linear-gradient(#edcc7d,#ae812a)!important;color:#201503!important;font-size:.83rem!important;font-weight:800!important;box-shadow:none!important;}
.lynx-reply-enhanced .lynx-reply-post:hover:not(:disabled){filter:brightness(1.08);}
.lynx-reply-enhanced .lynx-reply-post:disabled{opacity:.55;}
.lynx-reply-upload[hidden],.lynx-reply-attachment[hidden],.lynx-reply-image-preview[hidden],.lynx-reply-gif-preview[hidden],.lynx-reply-alert[hidden]{display:none!important;}
.lynx-reply-attachment {margin:8px 1px 10px;}
.lynx-reply-image-preview,.lynx-reply-gif-preview{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;}
.lynx-reply-image-preview img,.lynx-reply-gif-preview img,.lynx-comment-media img {display:block;max-width:min(100%,360px);max-height:300px;width:auto;height:auto;object-fit:contain;border:1px solid rgba(212,175,55,.28);border-radius:10px;background:#0c0c0c;}
.lynx-reply-remove {border:1px solid rgba(212,175,55,.3);border-radius:7px;background:#201c13;color:#eed28c;font-size:.77rem;padding:7px 10px;cursor:pointer;}
.lynx-reply-alert {margin:7px 0 0;font-size:.8rem;color:#ffb2a5;}
.lynx-comment-media {display:block;margin-top:9px;max-width:100%;}
.lynx-comment-media.lynx-giphy-media {max-width:min(100%,360px);}
.lynx-comment-media .lynx-giphy-attribution {display:block;margin-top:4px;font-size:.69rem;color:#c8a955;}
@media(max-width:480px){.lynx-reply-shell{padding:5px 7px}.lynx-reply-toolbar{gap:4px}.lynx-reply-enhanced .lynx-reply-icon{width:30px!important;min-width:30px!important}.lynx-reply-enhanced .lynx-reply-post{min-width:53px!important;padding:7px 9px!important}}

/* Profile tabs: reply composer fits below cards and keeps dark gold palette. */
.lynx-profile-tab-reply-form{margin-top:14px!important;padding-top:10px!important;border-top:1px solid rgba(212,175,55,.18)!important;}


/* LYNXLYNKR 2026-10-11: shared Smilies palette — post composer AND post/comment replies.
   Keep the existing picker behavior, dimensions and responsive positioning. */
html body :is(.feed-smiley-picker, .profile-smiley-picker, .post-smiley-picker) {
  border: 1px solid rgba(212,175,55,.48) !important;
  background: linear-gradient(160deg,#1a1a1a 0%,#0b0b0b 85%) !important;
  color: #f5ebda !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.75), inset 0 1px rgba(255,227,160,.06) !important;
}
html body :is(.feed-smiley-picker-header, .profile-smiley-picker-header, .post-smiley-picker-header) strong {
  color: #f3d878 !important;
}
html body :is(.feed-smiley-picker-header, .profile-smiley-picker-header, .post-smiley-picker-header) span,
html body :is(.feed-smiley-empty, .profile-smiley-empty, .post-smiley-empty) {
  color: #bdb3a4 !important;
}
html body :is(.feed-smiley-picker-close, .profile-smiley-picker-close, .post-smiley-picker-close) {
  color:#f3d878 !important;
  background:#1a1812 !important;
  border:1px solid rgba(212,175,55,.35) !important;
  border-radius:50% !important;
}
html body :is(.feed-smiley-picker-close, .profile-smiley-picker-close, .post-smiley-picker-close):is(:hover,:focus-visible) {
  background:#302614 !important;
  border-color:#f3d878 !important;
  outline-offset:2px;
}
html body :is(.feed-smiley-search, .profile-smiley-search, .post-smiley-search) {
  color:#f4ead8 !important;
  background:#0b0b0b !important;
  border:1px solid rgba(212,175,55,.36) !important;
  border-radius:9px;
  color-scheme:dark;
}
html body :is(.feed-smiley-search, .profile-smiley-search, .post-smiley-search)::placeholder {color:#a6a097 !important;}
html body :is(.feed-smiley-search, .profile-smiley-search, .post-smiley-search):focus-visible {
  border-color:#f3d878 !important;
  outline:2px solid rgba(212,175,55,.20);
  outline-offset:1px;
}
html body :is(.feed-smiley-option, .profile-smiley-option, .post-smiley-option) {
  border:1px solid rgba(212,175,55,.25) !important;
  background:#151515 !important;
  color:#f1e6d1 !important;
  box-shadow:none !important;
}
html body :is(.feed-smiley-option, .profile-smiley-option, .post-smiley-option):is(:hover,:focus-visible) {
  border-color:#f3d878 !important;
  background:#272112 !important;
  outline:2px solid rgba(212,175,55,.20);
  outline-offset:0;
}
html body :is(.feed-smiley-code, .profile-smiley-code, .post-smiley-code) {
  color:#d9cdb4 !important;
}
html body :is(.feed-smiley-grid, .profile-smiley-grid, .post-smiley-grid) {
  scrollbar-color:#a6833a #0b0b0b;
}
html body :is(.feed-smiley-grid, .profile-smiley-grid, .post-smiley-grid)::-webkit-scrollbar {width:8px;}
html body :is(.feed-smiley-grid, .profile-smiley-grid, .post-smiley-grid)::-webkit-scrollbar-track {background:#0b0b0b;}
html body :is(.feed-smiley-grid, .profile-smiley-grid, .post-smiley-grid)::-webkit-scrollbar-thumb {
  background:#a6833a;border:2px solid #0b0b0b;border-radius:99px;
}

/* post.php comment replies: replace old light-gray card palette and legibility problems.
   Scoped to Post detail so Feed/Profile cards stay unchanged. */
html body .post-detail-shell .comment-list > .comment {
  background:linear-gradient(135deg,#1a1a1a,#111) !important;
  color:#eee6d8 !important;
  border:1px solid rgba(212,175,55,.26) !important;
  border-left:3px solid rgba(212,175,55,.65) !important;
  box-shadow:0 5px 18px rgba(0,0,0,.3) !important;
}
html body .post-detail-shell .comment-list .comment.comment-reply {
  background:#141414 !important;
  color:#eee6d8 !important;
  border:1px solid rgba(212,175,55,.2) !important;
  box-shadow:none !important;
}
html body .post-detail-shell .comment-list .comment-meta-row b,
html body .post-detail-shell .comment-list .comment-meta-row b a {color:#f2d07a !important;}
html body .post-detail-shell .comment-list .comment-meta-row > div:first-child > span,
html body .post-detail-shell .comment-list .comment-date,
html body .post-detail-shell .comment-list .comment-edited-label {color:#b8ad9a !important;}
html body .post-detail-shell .comment-list .comment-body {color:#f0e9df !important;}
html body .post-detail-shell .comment-list :is(.comment-like-button,.comment-reply-button,.comment-edit-button) {
  color:#d1c3ac !important;
  background:transparent !important;
}
html body .post-detail-shell .comment-list :is(.comment-like-button,.comment-reply-button,.comment-edit-button):is(:hover,:focus-visible) {
  color:#f3d878 !important;
  background:rgba(212,175,55,.12) !important;
}
html body .post-detail-shell .comment-list .comment-delete-button {color:#ff9b90 !important;}
html body .post-detail-shell .comment-list .comment-like-count {color:#b8ad9a !important;}
html body .post-detail-shell .comment-list .comment-replies {border-left-color:rgba(212,175,55,.27) !important;}
html body .post-detail-shell .comment-list .comment-edit-form textarea {
  background:#0b0b0b !important; color:#f0e9df !important;
  border:1px solid rgba(212,175,55,.32) !important;
}

/* Phase 2: Cloudflare Stream video replies and public Lynx-Stream embeds */
/* Video uploads and inline players share the black LynxLynkr palette. */
.lynx-reply-attachment, .lynx-reply-video-preview, .lynx-comment-media.lynx-video-media {box-sizing:border-box;min-width:0;max-width:100%;background:#080808!important;color:#f5ebd9;overflow:hidden!important;}
.lynx-reply-video-preview {display:block;width:100%;margin:10px 0;padding:10px;border:1px solid rgba(212,175,55,.34);border-radius:10px;box-shadow:none!important;}
.lynx-reply-video-preview[hidden] {display:none!important;}
.lynx-reply-video-preview video {display:block;width:100%;max-width:100%;height:auto;max-height:360px;object-fit:contain;background:#000!important;border:0;border-radius:7px;overflow:hidden;}
.lynx-reply-video-status {font-size:.8rem;color:#e3c680;margin:8px 0;overflow-wrap:anywhere;}
.lynx-comment-media.lynx-video-media {display:block;width:100%;max-width:620px;margin:9px 0 0;border:1px solid rgba(212,175,55,.28);border-radius:10px;overflow:hidden!important;}
.lynx-video-media iframe {display:block;width:100%;max-width:100%;height:auto;min-height:0;aspect-ratio:16/9;border:0;background:#000!important;overflow:hidden;}
.lynx-stream-post-embed {box-sizing:border-box;min-width:0;width:100%;max-width:660px;margin:12px 0;border:1px solid rgba(212,175,55,.28);border-radius:11px;background:#080808!important;overflow:hidden!important;}
.lynx-stream-post-embed iframe {display:block;width:100%;max-width:100%;height:auto;min-height:0;aspect-ratio:16/9;border:0;background:#000!important;overflow:hidden;}
/* Mobile embeds scale to the post rather than forcing any internal scrollbars. */
@media(max-width:480px){.lynx-reply-video-preview{padding:6px}.lynx-reply-video-preview video{max-height:65vh}.lynx-video-media iframe,.lynx-stream-post-embed iframe{min-height:0;}}
.lynx-stream-post-caption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px;font-size:.83rem;color:#d9bd6e;}
.lynx-stream-post-caption a{color:#f1d884;text-decoration:underline;}
.lynx-stream-video-share{font-size:.82rem!important;}

.lynx-stream-share-dialog{width:min(520px,calc(100% - 28px));max-height:calc(100vh - 50px);padding:0;border:1px solid #ae8b42;border-radius:14px;color:#efe5d4;background:#141414;box-shadow:0 22px 70px #000c;}
.lynx-stream-share-dialog::backdrop{background:rgba(0,0,0,.74)}
.lynx-stream-share-inner{padding:23px;display:grid;gap:14px}
.lynx-stream-share-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.lynx-stream-share-title-row h3{margin:0;color:#eacd83;font-size:1.17rem}
.lynx-stream-share-inner p{margin:0;color:#c9c1b2;font-size:.88rem;line-height:1.5}
.lynx-stream-share-inner label{font-size:.87rem;color:#f0d17d;font-weight:700}
.lynx-stream-share-inner input{min-width:0;width:100%;padding:11px;border:1px solid #74602d;border-radius:8px;background:#0b0b0b;color:#fff;font:inherit;box-sizing:border-box}
.lynx-stream-share-close{background:transparent;border:0;color:#edcb79;font-size:26px;cursor:pointer}
.lynx-stream-share-actions{display:flex;justify-content:flex-end;gap:10px}
.lynx-stream-share-actions button{background:#27221a;border:1px solid #7c6637;border-radius:8px;color:#eee1c4;padding:8px 12px;cursor:pointer}
.lynx-stream-share-actions button:last-child{background:#d4af52;border-color:#d4af52;color:#17130a;font-weight:800}
.lynx-stream-share-dialog .lynx-stream-share-error:not([hidden]){color:#ffb4a7}

/* Non-blocking success notification: Cloudflare accepted upload; processing is separate. */
.lynx-video-success-toast {
  position:fixed;top:110px;right:20px;z-index:100000;
  box-sizing:border-box;width:min(390px,calc(100vw - 28px));
  padding:13px 17px;border:1px solid #b99a49;border-radius:12px;
  background:#121212;color:#f6eedc;box-shadow:0 14px 38px rgba(0,0,0,.65);
  font:inherit;line-height:1.45;pointer-events:none;
}
.lynx-video-success-toast[hidden]{display:none!important;}
.lynx-video-success-heading{display:block;color:#f0d17f;font-size:.94rem;font-weight:800;}
.lynx-video-success-note{display:block;color:#ded5c5;font-size:.8rem;margin-top:4px;}
@media(max-width:600px){.lynx-video-success-toast{top:74px;right:14px;}}

/* Live Cloudflare reply upload progress (actual bytes transferred). */
.lynx-reply-upload-progress {margin:10px 0 8px;max-width:100%;color:#f3d878;}
.lynx-reply-upload-progress[hidden] {display:none!important;}
.lynx-reply-upload-progress-line {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;font-size:.78rem;}
.lynx-reply-upload-progress-name {font-weight:800;color:#f0d17f;}
.lynx-reply-upload-progress-value {color:#f0d17f;font-weight:750;font-variant-numeric:tabular-nums;}
.lynx-reply-upload-progress-track {height:9px;width:100%;border-radius:999px;overflow:hidden;background:#30291a;border:1px solid rgba(212,175,55,.35);box-sizing:border-box;}
.lynx-reply-upload-progress-fill {width:0%;height:100%;background:linear-gradient(90deg,#a98331,#f6d984);border-radius:999px;transition:width .13s linear;}
.lynx-reply-upload-progress.is-indeterminate .lynx-reply-upload-progress-fill {width:35%!important;animation:lynx-video-upload-pulse 1.5s ease-in-out infinite;}
@keyframes lynx-video-upload-pulse {0%{transform:translateX(-100%)}100%{transform:translateX(290%)}}
@media(prefers-reduced-motion:reduce){.lynx-reply-upload-progress-fill{transition:none}.lynx-reply-upload-progress.is-indeterminate .lynx-reply-upload-progress-fill{animation:none;width:100%!important;}}
