/* KF261 | Worlds Wall: consistent 2–5 image collage and vertical photo post viewer. */
.kf-world-root .kf-wall-media.is-wall-collage {display:grid;gap:4px;border-radius:5px;overflow:hidden;background:#05090b;min-width:0}
.kf-world-root .kf-wall-media.is-wall-collage.count-1{grid-template-columns:minmax(0,1fr)}
.kf-world-root .kf-wall-media.is-wall-collage.count-2{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(170px,auto)}
.kf-world-root .kf-wall-media.is-wall-collage.count-3{grid-template-columns:1.15fr 1fr;grid-template-rows:repeat(2,clamp(120px,15vw,230px))}
.kf-world-root .kf-wall-media.is-wall-collage.count-4{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,clamp(115px,14vw,220px))}
.kf-world-root .kf-wall-media.is-wall-collage.count-5,
.kf-world-root .kf-wall-media.is-wall-collage.count-6{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,clamp(120px,15vw,210px))}
.kf-world-root .kf-wall-media.is-wall-collage.count-3 > :first-child,
.kf-world-root .kf-wall-media.is-wall-collage.count-5 > :first-child,
.kf-world-root .kf-wall-media.is-wall-collage.count-6 > :first-child{grid-row:span 2}
.kf-world-root .kf-wall-media.is-wall-collage.count-5 > :first-child,
.kf-world-root .kf-wall-media.is-wall-collage.count-6 > :first-child{grid-column:span 2}
.kf-world-root .kf-wall-media.is-wall-collage>button,
.kf-world-root .kf-wall-media.is-wall-collage>a{position:relative;display:block;width:100%;height:100%;min-height:0;cursor:zoom-in}
.kf-world-root .kf-wall-media.is-wall-collage button img,
.kf-world-root .kf-wall-media.is-wall-collage a img {display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
.kf-world-root .kf-wall-media.is-wall-collage.count-1 img{height:auto;object-fit:contain}
.kf-wall-more-photos{position:absolute;inset:0;display:grid;place-items:center;background:rgba(0,0,0,.62);color:white;font-size:clamp(19px,3vw,38px);font-weight:650;pointer-events:none}
/* Opened post: un-cropped images in document order. */
.kf-world-root .kf-wall-media.is-wall-vertical{display:flex;flex-direction:column;gap:0;overflow:visible;background:transparent;min-width:0}
.kf-world-root .kf-wall-photo-frame{display:block;width:100%;min-width:0;margin:0;border-bottom:6px solid #081014;scroll-margin-top:72px}
.kf-world-root .kf-wall-photo-frame>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;background:#050a0d;aspect-ratio:auto}
.kf-world-root .kf-wall-photo-frame>video{width:100%;height:auto;max-height:85vh}
.kf-world-root .kf-wall-photo-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap;min-height:42px;padding:7px 12px;background:#0c181c;color:#c9d2d0;font-size:12px}
.kf-world-root .kf-wall-photo-number{font-size:11px;color:#9caeb1;margin-right:auto}
.kf-world-root .kf-wall-photo-reaction{display:flex;gap:7px;align-items:center;margin:0}
.kf-world-root .kf-wall-photo-reaction button,.kf-world-root .kf-wall-photo-comments-button{display:inline-flex;align-items:center;gap:6px;padding:4px 7px;background:transparent;border:0;border-radius:6px;box-shadow:none;color:#bccdce;font-size:12px;cursor:pointer}
.kf-world-root .kf-wall-photo-actions [aria-pressed=true]{color:rgba(var(--kyra-ui-228,205,178,252),1)}
.kf-world-root .kf-wall-photo-actions .kf-icon{width:17px;height:17px}
.kf-world-root .kf-wall-photo-reactions-list{position:relative}
.kf-world-root .kf-wall-photo-reactions-list summary{list-style:none;cursor:pointer;color:#a6b7ba;line-height:1}
.kf-world-root .kf-wall-photo-reactions-list summary::-webkit-details-marker{display:none}
.kf-world-root .kf-wall-photo-reactions-list>div{position:absolute;z-index:30;right:0;bottom:22px;display:flex;gap:3px;min-width:max-content;padding:7px;border:1px solid #39484e;border-radius:25px;background:#142127;box-shadow:0 8px 20px #000a}
.kf-world-root .kf-wall-photo-reactions-list button{font-size:19px;padding:5px}
.kf-world-root .kf-wall-photo-reaction-count{color:#bbc9cd;font-size:11px}
.kf-world-root .kf-wall-comment-photo{display:inline-flex;align-items:center;margin:3px 0 4px;color:rgba(var(--kyra-ui-236,209,184,252),1)!important;font-size:10px}
/* Fixed controls: Back returns to the vertical photos, X always closes the modal. */
.kf-world-root .kf-wall-dialog.is-post-view{padding-top:0!important}
.kf-world-root .kf-wall-dialog.is-post-view .kf-wall-dialog-head{position:sticky;top:0;z-index:60;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:8px 12px;background:#0c171b;border-bottom:1px solid #2b393e}
.kf-world-root .kf-wall-dialog.is-post-view .kf-wall-dialog-head button{position:static;flex:none;min-width:36px;min-height:36px;border:0;background:transparent;color:#eef0eb;font-size:25px;cursor:pointer}
.kf-world-root .kf-wall-photo-comments-nav{display:none;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px;padding:8px 0;border-bottom:1px solid #354348}
.kf-world-root .kf-wall-photo-comments-nav>button{display:inline-flex;gap:7px;align-items:center;padding:9px 7px;border:0;background:transparent;color:rgba(var(--kyra-ui-231,206,180,252),1);cursor:pointer;font-size:12px}
.kf-world-root .kf-wall-photo-comments-nav>strong{font-size:12px;color:#d6e0dd}
.kf-world-root .kf-wall-dialog.is-media-comments .kf-wall-post.is-detail > :not(.kf-wall-comments):not(.kf-wall-inline-status){display:none!important}
.kf-world-root .kf-wall-dialog.is-post-view:not(.is-media-comments) .kf-wall-post.is-detail .kf-wall-comments{display:none!important}
.kf-world-root .kf-wall-dialog.is-media-comments .kf-wall-photo-comments-nav{display:flex}
.kf-world-root .kf-wall-dialog.is-media-comments .kf-wall-post.is-detail .kf-wall-comments{display:block!important}
@media(max-width:650px){
  .kf-world-root .kf-wall-media.is-wall-collage.count-2{grid-template-rows:minmax(130px,auto)}
  .kf-world-root .kf-wall-media.is-wall-collage.count-3{grid-template-rows:repeat(2,clamp(95px,24vw,160px))}
  .kf-world-root .kf-wall-media.is-wall-collage.count-4{grid-template-rows:repeat(2,clamp(90px,25vw,170px))}
  .kf-world-root .kf-wall-media.is-wall-collage.count-5,
  .kf-world-root .kf-wall-media.is-wall-collage.count-6{grid-template-rows:repeat(2,clamp(90px,25vw,165px))}
  .kf-world-root .kf-wall-photo-actions{gap:6px;padding:6px 8px}
  .kf-world-root .kf-wall-photo-number{font-size:10px}
  .kf-world-root .kf-wall-dialog.is-post-view{max-height:98dvh;width:100%;max-width:100vw;border-radius:0;margin:0 auto;}
}

/* Target the internal modal scroller and override legacy generic media-button rules. */
html body .kf-world-root .kf-wall-dialog.is-post-view .kf-wall-media.is-wall-vertical .kf-wall-photo-frame>img {max-height:none!important;height:auto!important;object-fit:contain!important}
html body .kf-world-root .kf-wall-media.is-wall-vertical button {width:auto;min-width:0;overflow:visible;cursor:pointer}
html body .kf-world-root .kf-wall-media.is-wall-vertical .kf-wall-photo-reaction button {display:inline-flex;width:auto!important;padding:4px 7px!important}
html body .kf-world-root .kf-wall-dialog.is-post-view .kf-wall-dialog-head {flex:0 0 auto}

/* Overrides for legacy high-specificity KF Worlds feed/detail media rules.
   On the feed only, collage cells should fill their slots; in the opened viewer
   full-size images must retain their true height and never be cropped. */
html body.role-public-world_owner .kf-world-root [data-wall-feed] .kf-wall-media.is-wall-collage > button img,
html body.role-public-world_owner .kf-world-root [data-wall-feed] .kf-wall-media.is-wall-collage > a img {
  width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:center;
}
html body.role-public-world_owner .kf-world-root [data-wall-feed] .kf-wall-media.is-wall-collage.count-1 > button img,
html body.role-public-world_owner .kf-world-root [data-wall-feed] .kf-wall-media.is-wall-collage.count-1 > a img {height:auto;object-fit:contain;}
html body .kf-world-root .kf-wall-dialog .kf-wall-media.is-wall-vertical .kf-wall-photo-frame > img {
  display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;
}
html body .kf-world-root .kf-wall-dialog .kf-wall-media.is-wall-vertical .kf-wall-photo-frame > video {
  display:block;width:100%;height:auto;max-height:85vh;object-fit:contain;
}


/* KF265: post editor media thumbnails. Works inside timeline and post modal. */
.kf-world-root .kf-wall-edit-media{display:grid;gap:10px;min-width:0;margin:12px 0;padding:11px;border:1px solid #314047;border-radius:10px;background:#0d171b;color:#dfe5e3}
.kf-world-root .kf-wall-edit-media>strong{font-size:12px;font-weight:650}
.kf-world-root .kf-wall-edit-existing,.kf-world-root .kf-wall-edit-new{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:8px;max-width:100%;min-width:0}
.kf-world-root .kf-wall-edit-media-card{position:relative;overflow:hidden;min-width:0;aspect-ratio:1;margin:0;border-radius:7px;background:#192429;border:1px solid #38454a}
.kf-world-root .kf-wall-edit-media-card>img{display:block;width:100%;height:100%;max-height:none;object-fit:cover}
.kf-world-root .kf-wall-edit-video-placeholder{display:grid;place-items:center;height:100%;color:#b9c6c7}
.kf-world-root .kf-wall-edit-remove{position:absolute;right:4px;top:4px;z-index:2;display:grid;place-items:center;width:25px;height:25px;border:0;border-radius:50%;background:#121b20e8;color:white;font-size:19px;line-height:1;cursor:pointer;box-shadow:0 1px 8px #0007}
.kf-world-root .kf-wall-edit-remove:hover,.kf-world-root .kf-wall-edit-remove:focus-visible{background:#8c3232;outline:1px solid rgba(var(--kyra-ui-229,205,179,252),1)}
.kf-world-root .kf-wall-edit-media-card.is-removing>img,.kf-world-root .kf-wall-edit-media-card.is-removing>.kf-wall-edit-video-placeholder{opacity:.22}
.kf-world-root .kf-wall-edit-media-card.is-removing .kf-wall-edit-remove{background:rgba(var(--kyra-ui-119,108,93,134),1)}
.kf-world-root .kf-wall-edit-removed{position:absolute;bottom:3px;left:3px;right:3px;z-index:1;display:none;padding:4px 2px;border-radius:4px;background:#141f23d9;text-align:center;color:rgba(var(--kyra-ui-234,208,182,252),1);font-size:10px;pointer-events:none}
.kf-world-root .kf-wall-edit-media-card.is-removing .kf-wall-edit-removed{display:block}
.kf-world-root .kf-wall-edit-add{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.kf-world-root .kf-wall-edit-add>label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.kf-world-root .kf-wall-edit-add>small{color:#a6b6b8;font-size:11px}
.kf-world-root .kf-wall-edit-add input[type=file]{position:absolute!important;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}
.kf-world-root .kf-wall-edit-media progress{width:100%;height:5px;accent-color:rgba(var(--kyra-ui-224,203,175,252),1)}
.kf-world-root .kf-wall-edit-media [data-wall-status]{display:block;font-size:11px;color:rgba(var(--kyra-ui-226,204,176,252),1)}
@media(max-width:480px){.kf-world-root .kf-wall-edit-media{padding:9px}.kf-world-root .kf-wall-edit-existing,.kf-world-root .kf-wall-edit-new{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* KF267: Mobile World wall composer. Chrome iOS/WebKit requires 16px text to
   avoid automatic focus zoom. Restrict changes to the World wall, not all forms. */
.kf-world-root .kf-wall-composer,
.kf-world-root .kf-wall-compose-line,
.kf-world-root .kf-wall-compose-field,
.kf-world-root .kf-world-stream,
.kf-world-root .kf-wall-upload,
.kf-world-root .kf-wall-upload-feedback {min-width:0;max-width:100%;box-sizing:border-box}
.kf-world-root .kf-wall-upload-feedback[hidden]{display:none!important}
.kf-world-root .kf-wall-upload-feedback{
  position:relative;z-index:2;display:flex;flex-direction:column;gap:8px;
  margin:10px 0;padding:10px 12px;border:1px solid rgba(var(--kyra-ui-224,203,175,252),0.45);
  border-radius:9px;background:#122024;color:rgba(var(--kyra-ui-241,211,187,252),1);
  scroll-margin-top:112px;
}
.kf-world-root .kf-wall-upload-feedback progress:not([hidden]){
  display:block;width:100%;max-width:100%;height:8px;accent-color:rgba(var(--kyra-ui-224,203,175,252),1);
}
.kf-world-root .kf-wall-upload-feedback progress[hidden]{display:none!important}
.kf-world-root .kf-wall-upload-feedback [data-wall-status]{display:block;min-height:1.4em;line-height:1.45;font-size:13px;overflow-wrap:anywhere}
.kf-world-root .kf-wall-upload-limits{display:flex;flex-direction:column;gap:4px;margin-top:9px;color:#b7c1c3;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
@media(max-width:700px){
  .kf-world-root .kf-wall-composer textarea[name="body"],
  .kf-world-root .kf-wall-edit textarea[name="body"],
  .kf-world-root .kf-wall-comment-form textarea,
  .kf-world-root .kf-wall-comment-editor textarea,
  .kf-world-root .kf-wall-composer input:not([type=file]) {font-size:16px!important;line-height:1.45!important;max-width:100%;box-sizing:border-box}
  .kf-world-root .kf-wall-compose-field{display:flex;align-items:flex-end;gap:8px;width:100%;overflow:visible}
  .kf-world-root .kf-wall-compose-field textarea{flex:1 1 0;min-width:0;width:auto;max-height:180px;overflow:auto}
  .kf-world-root .kf-wall-compose-field .kf-wall-compose-send{flex:0 0 auto;position:relative;inset:auto;transform:none;min-width:40px;min-height:40px;max-width:48px}
  .kf-world-root .kf-wall-upload-feedback{scroll-margin-top:96px}
  .kf-world-root .kf-wall-compose-tools{max-width:100%;box-sizing:border-box;flex-wrap:wrap}
  .kf-world-root .kf-wall-upload [data-wall-previews]{max-width:100%;box-sizing:border-box}
}

/* KF269 — photo reference is a small picture beside the comment, not "Photo 1" text. */
.kf-world-root .kf-wall-comment-photo {
  float:right;display:block;width:42px;height:42px;min-width:42px;min-height:42px;
  padding:0;margin:2px 0 6px 10px;border:1px solid rgba(var(--kyra-ui-230,206,179,252),0.35);
  border-radius:5px;overflow:hidden;background:#0b1318;cursor:pointer;
}
.kf-world-root .kf-wall-comment-photo[hidden]{display:none!important;}
.kf-world-root .kf-wall-comment-photo img {display:block;width:100%;height:100%;object-fit:cover;}
.kf-world-root .kf-wall-photo-actions {justify-content:flex-end;}
.kf-world-root .kf-wall-like.is-optimistic [data-wall-reaction-main] {color:rgba(var(--kyra-ui-226,204,176,252),1)!important;opacity:.85;}
@media(max-width:650px){
 .kf-world-root .kf-wall-comment-photo{width:36px;height:36px;min-width:36px;min-height:36px;}
}

/* KF274: separate photo discussions, no photo labels or miniatures in comments. */
.kf-world-root .kf-wall-comment-photo{display:none!important}
.kf-world-root .kf-wall-photo-comments-button{min-height:34px;min-width:48px;gap:7px;color:rgba(var(--kyra-ui-226,204,176,252),1)}
.kf-world-root .kf-wall-photo-comments-button span{font-size:13px;font-weight:600;min-width:1ch;font-variant-numeric:tabular-nums}
.kf-world-root .kf-wall-photo-comments-nav>strong{color:rgba(var(--kyra-ui-229,205,179,252),1);font-size:13px}

/* KF276 — one photograph at a time, its own comments directly underneath. */
html body .kf-world-root .kf-wall-dialog.is-post-view:not(.is-media-comments) .kf-wall-post.is-detail .kf-wall-comments{display:block!important;margin-top:10px;padding-top:8px;border-top:1px solid #26373d}
html body .kf-world-root .kf-wall-dialog.is-post-view .kf-wall-photo-frame[hidden]{display:none!important}
html body .kf-world-root .kf-wall-dialog.is-post-view .kf-wall-photo-frame{border-bottom:0;margin:0}
html body .kf-world-root .kf-wall-dialog.is-post-view .kf-wall-media.is-wall-vertical .kf-wall-photo-frame>img{display:block;width:100%;height:auto;max-height:min(68dvh,820px)!important;object-fit:contain!important;object-position:center;background:#071013;border-radius:4px}
html body .kf-world-root .kf-wall-dialog.is-post-view .kf-wall-photo-actions{border-bottom:1px solid #283c41;justify-content:flex-start}
html body .kf-world-root .kf-wall-dialog.is-post-view .kf-wall-media.is-wall-vertical{gap:0}
html body .kf-world-root .kf-wall-dialog.is-post-view .kf-wall-photo-pager{display:flex;align-items:center;justify-content:center;gap:14px;padding:6px 8px;margin:4px 0 8px;border:0;background:transparent;color:#d4e0df}
html body .kf-world-root .kf-wall-photo-pager>button{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;min-height:34px;background:#142126;border:1px solid #39494e;border-radius:7px;color:rgba(var(--kyra-ui-224,203,175,252),1);font:normal 26px/1 sans-serif;cursor:pointer}
html body .kf-world-root .kf-wall-photo-pager>button:hover{background:#243337;border-color:rgba(var(--kyra-ui-187,169,146,210),1)}
html body .kf-world-root .kf-wall-photo-pager>button:disabled{opacity:.3;cursor:default}
html body .kf-world-root .kf-wall-photo-pager>span{min-width:66px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums;color:#c4d0ce}
html body .kf-world-root .kf-wall-thread-heading{margin:4px 0 10px;font-size:12px;color:rgba(var(--kyra-ui-229,205,179,252),1)}
html body .kf-world-root .kf-wall-thread-heading>strong{font-size:12px;font-weight:600}
html body .kf-world-root .kf-wall-photo-comments-nav{display:none!important}
/* One subtle KF heart. The existing emoji choices appear on long-press or 1s hover. */
html body .kf-world-root .kf-wall-like{position:relative;min-width:0}
html body .kf-world-root .kf-wall-post-actions .kf-wall-like>[data-wall-reaction-main],
html body .kf-world-root .kf-wall-photo-reaction>[data-wall-reaction-main]{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:28px;min-height:30px;padding:3px 6px!important;border:0;background:transparent;box-shadow:none;font-size:14px!important;color:#bccac9;cursor:pointer;touch-action:manipulation;-webkit-touch-callout:none}
html body .kf-world-root .kf-wall-like>[data-wall-reaction-main]>.kf-icon{display:block;width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75}
html body .kf-world-root .kf-wall-like>[data-wall-reaction-main][aria-pressed="true"]{color:rgba(var(--kyra-ui-224,203,175,252),1)!important}
html body .kf-world-root .kf-wall-like>[data-wall-reaction-main][aria-pressed="true"]>.kf-icon{fill:rgba(var(--kyra-ui-224,203,175,252),0.24)}
html body .kf-world-root .kf-wall-reaction-picker[hidden]{display:none!important}
html body .kf-world-root .kf-wall-photo-reaction .kf-wall-reaction-picker{bottom:calc(100% + 5px);left:0;z-index:50}
html body .kf-world-root .kf-wall-photo-actions .kf-wall-photo-reaction .kf-icon{width:18px;height:18px}
html body .kf-world-root .kf-wall-photo-reaction-count{display:inline-flex;align-items:center;gap:6px}
html body .kf-world-root .kf-wall-photo-reaction-count .kf-icon{width:17px;height:17px}
@media(max-width:650px){
 html body .kf-world-root .kf-wall-dialog.is-post-view .kf-wall-media.is-wall-vertical .kf-wall-photo-frame>img{max-height:58dvh!important}
 html body .kf-world-root .kf-wall-photo-pager>button{width:40px;height:40px;min-height:40px;flex-basis:40px}
 html body .kf-world-root .kf-wall-post-actions .kf-wall-like>[data-wall-reaction-main],html body .kf-world-root .kf-wall-photo-reaction>[data-wall-reaction-main]{min-height:38px;min-width:38px}
}

/* Keep the viewer focused on this photo. Global post reactions remain on the feed. */
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-post.is-detail>.kf-wall-post-actions{display:none!important}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:3px 0 8px}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-heading [data-wall-general-comments]{border:0;box-shadow:none;background:transparent;color:#adc1c3;font-size:11px;padding:5px 1px;cursor:pointer}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-heading [data-wall-general-comments]:hover{color:rgba(var(--kyra-ui-224,203,175,252),1)}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-heading [data-wall-general-comments][hidden]{display:none!important}

/* KF277 — photo-at-a-time modal, no scrolling the image with its comments. */
html body .kf-world-root .kf-wall-dialog.is-photo-viewer{
 width:min(880px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;
 height:min(92dvh,920px)!important;max-height:min(92dvh,920px)!important;
 display:flex;flex-direction:column;overflow:hidden!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer:not([open]){display:none!important}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-dialog-head{flex:none!important}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer [data-wall-dialog-content]{
 display:flex!important;flex:1 1 auto!important;flex-direction:column;min-height:0!important;
 max-height:none!important;overflow:hidden!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-post.is-detail{
 display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
 position:relative!important;min-height:0!important;height:100%!important;
 padding:10px 12px 54px!important;box-sizing:border-box;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-post-head,
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-body,
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-title {flex:none!important;}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-body{max-height:56px!important;overflow-y:auto;margin-bottom:6px!important;}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-media.is-wall-vertical{
 display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
 min-height:0!important;max-height:100%!important;overflow:hidden!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-frame:not([hidden]){
 display:flex!important;position:relative;flex:1 1 auto;flex-direction:column;
 min-height:0!important;overflow:hidden!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-frame>img{
 display:block!important;flex:1 1 auto;min-height:0!important;
 width:100%!important;height:100%!important;max-height:100%!important;
 object-fit:contain!important;object-position:center!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-frame>.kf-wall-photo-actions{
 flex:0 0 40px;min-height:40px;margin:0;z-index:6;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comments{
 box-sizing:border-box;display:flex!important;flex-direction:column;
 position:absolute!important;left:0;right:0;bottom:0;z-index:20;
 max-height:min(55dvh,450px)!important;padding:0 12px 10px!important;margin:0!important;
 background:#0c1d23;border-top:1px solid #496066!important;
 box-shadow:0 -12px 34px #0008;transform:translateY(calc(100% - 48px));
 transition:transform .25s ease;overflow:hidden!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer.is-comments-open .kf-wall-comments{transform:translateY(0)!important}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-heading{
 box-sizing:border-box;display:flex;align-items:center;flex:none;
 margin:0!important;padding:0!important;min-height:47px!important;
 border:0!important;gap:6px!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-toggle{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 min-height:45px;flex:1;border:0;background:transparent;box-shadow:none;
 color:rgba(var(--kyra-ui-222,201,173,250),1);cursor:pointer;text-align:left;font-size:12px;padding:4px 3px;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-tray-arrow{
 display:inline-block;font:normal 20px/1 sans-serif;transition:transform .2s ease;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer.is-comments-open .kf-wall-tray-arrow{transform:rotate(180deg)}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer [data-wall-comment-list]{
 flex:1 1 auto;min-height:45px;max-height:min(31dvh,290px);overflow-y:auto;overscroll-behavior:contain;
 scrollbar-width:thin;scrollbar-color:#495961 transparent;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comment-entry{
 flex:none;margin:5px 0 0!important;padding-top:5px!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comment-form textarea{
 font-size:16px!important;line-height:1.4!important;min-height:38px;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-post.is-detail>.kf-wall-inline-status{display:none;}
/* Half-photo navigation with subtle always-visible arrows. */
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half{
 position:absolute!important;top:0;bottom:40px;z-index:3;display:flex!important;
 align-items:center!important;box-sizing:border-box;width:50%!important;min-width:0!important;
 margin:0!important;padding:0 12px!important;border:0!important;border-radius:0!important;
 color:rgba(var(--kyra-ui-240,211,187,252),1);cursor:pointer!important;background:transparent!important;box-shadow:none!important;
 opacity:1;touch-action:manipulation;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half.is-prev{left:0;justify-content:flex-start;}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half.is-next{right:0;justify-content:flex-end;}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half>span{
 display:grid;place-items:center;width:33px;height:40px;min-height:40px;
 border-radius:8px;background:#08111394;border:1px solid rgba(var(--kyra-ui-189,171,148,213),0.4);
 color:rgba(var(--kyra-ui-234,208,182,252),1);font:300 34px/1 sans-serif;opacity:.55;
 transition:opacity .16s ease,background .16s ease,border-color .16s ease;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half:hover>span,
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half:focus-visible>span,
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half:active>span{
 opacity:1;background:#102025d9;border-color:rgba(var(--kyra-ui-225,203,176,252),1);
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half:disabled{
 visibility:hidden;pointer-events:none;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-index{
 position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:5;
 font-size:11px;color:#d8dfe0;background:#0b191cc9;border:1px solid #53626970;
 padding:3px 10px;border-radius:12px;pointer-events:none;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-zoom{
 position:absolute;top:8px;right:8px;z-index:8;display:grid;place-items:center;
 width:32px;height:32px;min-width:32px;min-height:32px;padding:6px;
 border:1px solid rgba(var(--kyra-ui-179,162,140,201),0.4667);border-radius:7px;background:#0b1719bf;color:rgba(var(--kyra-ui-237,209,184,252),1);cursor:zoom-in;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-zoom:hover{background:#17272a;border-color:rgba(var(--kyra-ui-224,203,175,252),1);}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-pager{display:none!important;}
/* Native KF image zoom is mounted inside the dialog top layer, not below it. */
html body .kf-world-root .kf-wall-dialog.is-photo-viewer>.kf-media-lightbox{z-index:9000;}
@media(max-width:650px){
 html body .kf-world-root .kf-wall-dialog.is-photo-viewer{width:100%!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;margin:0!important;}
 html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-post.is-detail{padding:8px 7px 54px!important;}
 html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half{padding:0 5px!important;}
 html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half>span{width:28px;height:37px;font-size:30px;}
 html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comments{max-height:60dvh!important;padding-inline:9px!important;}
}
@media(prefers-reduced-motion:reduce){html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comments{transition:none!important}}

/* KF277: when comments slide up, reserve their actual footprint so the
   entire photograph remains visible rather than hidden behind the tray. */
html body .kf-world-root .kf-wall-dialog.is-photo-viewer{
 --kf-photo-tray-height:min(36dvh,320px);
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comments{
 height:var(--kf-photo-tray-height)!important;
 max-height:var(--kf-photo-tray-height)!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-media.is-wall-vertical{
 margin-bottom:0!important;
 transition:margin-bottom .25s ease;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer.is-comments-open .kf-wall-media.is-wall-vertical{
 margin-bottom:calc(var(--kf-photo-tray-height) - 48px)!important;
}
@media(max-width:650px){
 html body .kf-world-root .kf-wall-dialog.is-photo-viewer{--kf-photo-tray-height:min(42dvh,350px);}
}
@media(prefers-reduced-motion:reduce){
 html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-media.is-wall-vertical{transition:none!important;}
}


/* KF278: consistent readable 14px typography for the World board.
   This intentionally excludes timestamps, buttons, badges, menus and the 16px iOS composer. */
html body .kf-world-root .kf-wall-post .kf-wall-post-head strong,
html body .kf-world-root .kf-wall-dialog .kf-wall-post-head a,
html body.role-public-world_owner .kf-world-root [data-wall-feed] .kf-wall-post-head strong,
html body .kf-world-root .kf-wall-comment-copy>header>strong {
  font-size:14px!important;line-height:1.45!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-body,
html body.role-public-world_owner .kf-world-root [data-wall-feed] .kf-wall-body,
html body .kf-world-root .kf-wall-dialog .kf-wall-body,
html body .kf-world-root .kf-wall-comment-copy>p,
html body .kf-world-root .kf-wall-dialog .kf-wall-comment-copy>p {
  font-size:14px!important;line-height:1.55!important;
}
html body .kf-world-root .kf-wall-comment-editor textarea,
html body.role-public-world_owner .kf-world-root .kf-wall-comment-editor textarea,
html body .kf-world-root .kf-wall-comment-form textarea[data-wall-comment-text],
html body.role-public-world_owner .kf-world-root .kf-wall-comment-form textarea[data-wall-comment-text] {
  font-size:14px!important;
}
@media(max-width:767px){
  /* Chrome/Safari on iPhone zoom into form fields below 16px. */
  html body .kf-world-root .kf-wall-comment-editor textarea,
  html body.role-public-world_owner .kf-world-root .kf-wall-comment-editor textarea,
  html body .kf-world-root .kf-wall-comment-form textarea[data-wall-comment-text],
  html body.role-public-world_owner .kf-world-root .kf-wall-comment-form textarea[data-wall-comment-text] {font-size:16px!important;}
}


/* KF278 polish — KF chevrons instead of font glyph arrows. The half-photo
   click zones remain 50% wide, but the visible control is a compact round
   dark-glass button with ONE warm-gold outline, not an oversized square. */
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half>span.kf-wall-nav-glyph {
  box-sizing:border-box;display:grid;place-items:center;flex:none;
  width:36px!important;height:36px!important;min-height:36px!important;
  padding:0!important;border-radius:50%!important;
  border:1px solid rgba(var(--kyra-ui-224,203,175,252),0.46)!important;
  background:linear-gradient(145deg,rgba(18,30,34,.90),rgba(6,14,17,.89))!important;
  box-shadow:0 3px 14px rgba(0,0,0,.27)!important;
  color:rgba(var(--kyra-ui-224,203,175,252),1)!important;opacity:.72!important;font-size:0!important;
  transform:none;transition:opacity .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half .kf-wall-nav-glyph svg {
  display:block;width:19px;height:19px;stroke:currentColor;stroke-width:1.85;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half:is(:hover,:focus-visible,:active)>span.kf-wall-nav-glyph{
  opacity:1!important;border-color:rgba(var(--kyra-ui-224,203,175,252),1)!important;
  background:linear-gradient(150deg,#1e3034,#101b20)!important;
  box-shadow:0 0 0 2px rgba(var(--kyra-ui-224,203,175,252),0.11),0 5px 18px rgba(0,0,0,.38)!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half:focus-visible {
  outline:2px solid rgba(var(--kyra-ui-224,203,175,252),1)!important;outline-offset:-3px;
}
@media(max-width:650px){
  html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half>span.kf-wall-nav-glyph {
    width:32px!important;height:32px!important;min-height:32px!important;
  }
  html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-half .kf-wall-nav-glyph svg{width:17px;height:17px;}
}
/* The comments up/down indicator uses the same minimal SVG language. */
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-tray-arrow {
  display:grid;place-items:center;width:25px;height:25px;flex:none;
  color:rgba(var(--kyra-ui-224,203,175,252),1);transition:transform .23s ease;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-tray-arrow svg {
  display:block;width:17px;height:17px;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer.is-comments-open .kf-wall-tray-arrow {transform:rotate(180deg);}

/* Compact, vertically centered post composer. Long typed posts still grow
   naturally via existing textarea auto-resize. Keep >=16px mobile inputs to
   avoid automatic zoom in Chrome/Safari on iOS. */
html body.role-public-world_owner .kf-world-root .kf-wall-composer .kf-wall-compose-line {
  align-items:center!important;gap:10px!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-composer .kf-wall-compose-field {
  display:flex!important;align-items:center!important;box-sizing:border-box;
  min-height:36px!important;height:auto!important;
  padding:2px 6px 2px 12px!important;gap:6px!important;
  border-radius:20px!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-composer .kf-wall-compose-field>textarea {
  font-size:14px!important;line-height:20px!important;
  box-sizing:border-box!important;display:block!important;
  flex:1 1 auto!important;align-self:center!important;
  min-height:28px!important;height:28px;
  margin:0!important;padding:4px 0!important;
  border:0!important;background:transparent!important;
  overflow:hidden!important;resize:none!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-composer .kf-wall-compose-send {
  flex:0 0 28px!important;width:28px!important;height:28px!important;
  min-height:28px!important;margin:0!important;padding:4px!important;
  align-self:center!important;
}
/* Same compact centering for the comment input. */
html body.role-public-world_owner .kf-world-root .kf-wall-comment-form{
  align-items:center!important;min-height:36px!important;
  padding:2px 9px!important;gap:4px!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-comment-form textarea[data-wall-comment-text]{
  font-size:14px!important;line-height:20px!important;
  min-height:28px!important;margin:0!important;padding:4px 0!important;
  align-self:center!important;
}
@media(max-width:767px){
  html body.role-public-world_owner .kf-world-root .kf-wall-composer .kf-wall-compose-field>textarea,
  html body.role-public-world_owner .kf-world-root .kf-wall-comment-form textarea[data-wall-comment-text]{font-size:16px!important;}
}


/* KF278 final pass — remove remaining typographic arrows in Worlds.
   All navigation uses slim, consistent KF SVG chevrons. */
html body .kf-world-root [data-wall-general-comments].is-back-to-photo {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
}
html body .kf-world-root [data-wall-general-comments].is-back-to-photo svg {
  flex:none;width:14px;height:14px;stroke:currentColor;
}
html body .kf-world-root .kf-world-inline-chevron {
  display:inline-block;vertical-align:-2px;width:13px;height:13px;
  margin-left:3px;color:rgba(var(--kyra-ui-224,203,175,252),1);stroke:currentColor;stroke-width:1.8;
  transition:transform .18s ease;
}
html body .kf-world-root a:hover>.kf-world-inline-chevron,
html body .kf-world-root a:focus-visible>.kf-world-inline-chevron {
  transform:translateX(2px);
}


/* KF280 — Comments drawer: fit its content, never reserve a blank 36dvh tray.
   The JS measures actual tray height and reserves a small visual clearance so the photograph stays fully visible. */
html body .kf-world-root .kf-wall-dialog.is-photo-viewer{
 --kf-tray-open-offset:0px;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comments{
 box-sizing:border-box!important;
 height:auto!important;min-height:48px!important;
 max-height:min(56dvh,450px)!important;
 padding:0 12px 9px!important;
 transform:translateY(calc(100% - 48px))!important;
 align-items:stretch!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer.is-comments-open .kf-wall-comments{
 transform:translateY(0)!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-heading{
 box-sizing:border-box!important;flex:0 0 48px!important;
 min-height:48px!important;height:48px!important;
 padding:0!important;margin:0!important;
 justify-content:space-between!important;flex-wrap:nowrap!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-toggle{
 box-sizing:border-box!important;flex:1 1 auto!important;min-width:0!important;
 min-height:40px!important;padding:4px 0!important;
 justify-content:flex-start!important;text-align:left!important;
 font-size:12px!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-heading [data-wall-general-comments]{
 flex:0 0 auto!important;white-space:nowrap!important;margin-left:auto!important;
 padding:5px 0 5px 10px!important;text-align:left!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-toggle .kf-wall-tray-arrow{
 display:none!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer [data-wall-comment-list]{
 box-sizing:border-box!important;flex:0 1 auto!important;
 min-height:0!important;max-height:min(32dvh,260px)!important;
 overflow-y:auto;overflow-x:hidden;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comment-entry{
 flex:0 0 auto!important;margin:5px 0 0!important;
 padding:8px 0 0!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comment,
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comment-copy,
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comment-copy>header,
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comment-copy>p,
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-no-comments,
html body .kf-world-root .kf-wall-dialog.is-photo-viewer textarea[data-wall-comment-text],
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-heading{
 text-align:left!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-no-comments{
 box-sizing:border-box!important;min-height:0!important;
 padding:7px 0 9px!important;margin:0!important;
 line-height:1.45!important;
}
html body .kf-world-root .kf-wall-dialog.is-photo-viewer.is-comments-open .kf-wall-media.is-wall-vertical{
 margin-bottom:var(--kf-tray-open-offset,0px)!important;
}
@media(max-width:650px){
 html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comments{
  padding:0 9px 8px!important;max-height:min(59dvh,480px)!important;
 }
 html body .kf-world-root .kf-wall-dialog.is-photo-viewer textarea[data-wall-comment-text]{font-size:16px!important;}
}
@media(prefers-reduced-motion:reduce){
 html body .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comments{transition:none!important;}
}


/* KF281 — comment action menu must escape the scrolled photo-comments list. */
html body .kf-world-root .kf-wall-comment-menu > div[popover]:popover-open {
 box-sizing:border-box!important;
 position:fixed!important;
 inset:auto!important;
 left:var(--kf-comment-menu-left,0px)!important;
 top:var(--kf-comment-menu-top,0px)!important;
 right:auto!important;
 bottom:auto!important;
 width:190px!important;
 min-width:190px!important;
 max-width:calc(100vw - 20px)!important;
 margin:0!important;
 padding:5px!important;
 border:1px solid #40545b!important;
 border-radius:8px!important;
 background:#14242a!important;
 box-shadow:0 14px 34px rgba(0,0,0,.72)!important;
 color:#dce8e8!important;
 z-index:2147483647!important;
 overflow:visible!important;
}
html body .kf-world-root .kf-wall-comment-menu > div[popover]:popover-open button {
 width:100%!important;min-height:35px!important;padding:9px 12px!important;
 text-align:left!important;font-size:12px!important;
}
/* Graceful fallback for browsers without native Popover API: open upward, not into the composer. */
@supports not selector(:popover-open) {
 html body .kf-world-root .kf-wall-comment-menu[open] > div {
  top:auto!important;bottom:calc(100% + 5px)!important;
 }
}


/* KF199 / 2026-11-08 — Worlds timeline and photo-conversation refinements.
   Keep world header, global typography, navbar and non-World screens intact. */

/* Messenger-scale reaction strip: compact buttons and consistent emoji rendering.
   A readable touch target is retained even though the glyph is smaller. */
html body.role-public-world_owner .kf-world-root .kf-wall-reaction-picker{
 display:flex!important;align-items:center!important;justify-content:center!important;
 gap:2px!important;padding:4px 7px!important;
 border-radius:22px!important;border:1px solid #334a50!important;
 background:#162a31!important;box-shadow:0 7px 18px rgba(0,0,0,.45)!important;
 max-width:calc(100vw - 24px)!important;box-sizing:border-box!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-reaction-picker[hidden]{display:none!important}
html body.role-public-world_owner .kf-world-root .kf-wall-reaction-picker>button{
 display:grid!important;place-items:center!important;
 box-sizing:border-box!important;width:29px!important;height:29px!important;
 min-width:29px!important;min-height:29px!important;
 margin:0!important;padding:1px!important;
 font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif!important;
 font-size:18px!important;line-height:1!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 transition:transform .15s ease!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-reaction-picker>button:is(:hover,:focus-visible){transform:translateY(-1px) scale(1.08)!important}

/* Photos + comments are a single visible conversation, not an overlay drawer.
   The photo grows/shrinks in remaining space; the lower pane has its own scroll. */
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-post.is-detail{
 display:flex!important;flex-direction:column!important;
 padding:10px 12px 12px!important;overflow:hidden!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-media.is-wall-vertical{
 flex:1 1 auto!important;min-height:110px!important;max-height:none!important;
 margin:0!important;overflow:hidden!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comments{
 display:flex!important;flex-direction:column!important;position:relative!important;
 flex:0 1 auto!important;left:auto!important;right:auto!important;bottom:auto!important;
 width:100%!important;height:auto!important;min-height:90px!important;
 max-height:min(43dvh,375px)!important;
 margin:8px 0 0!important;padding:0 0 2px!important;
 background:#0c1b20!important;border:0!important;border-top:1px solid #30434a!important;
 border-radius:0!important;box-shadow:none!important;
 transform:none!important;transition:none!important;overflow:hidden!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-heading{
 flex:0 0 auto!important;height:38px!important;min-height:38px!important;
 padding:0!important;gap:10px!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-toggle{
 display:flex!important;align-items:center!important;min-height:34px!important;
 padding:0!important;margin:0!important;color:rgba(var(--kyra-ui-224,203,175,252),1)!important;
 cursor:default!important;pointer-events:none!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer [data-wall-comment-list]{
 flex:0 1 auto!important;min-height:34px!important;max-height:min(25dvh,245px)!important;
 overflow-y:auto!important;scrollbar-width:thin;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comment-entry{
 flex:none!important;margin:7px 0 0!important;padding:8px 0 0!important;
 border-top:1px solid #293e44!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-media.is-wall-vertical,
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer.is-comments-open .kf-wall-media.is-wall-vertical{
 margin-bottom:0!important;
}

/* Worlds wall: avoid raw browser-looking blocks in timeline tools and menus. */
html body.role-public-world_owner .kf-world-root .kf-wall-composer,
html body.role-public-world_owner .kf-world-root [data-wall-feed]>.kf-wall-post:not(.is-gallery){
 border:1px solid #263b42!important;border-radius:9px!important;
 background:#0c191e!important;box-shadow:none!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-composer:focus-within{border-color:#466064!important}
html body.role-public-world_owner .kf-world-root .kf-wall-composer .kf-wall-compose-tools{
 flex-wrap:wrap!important;column-gap:16px!important;row-gap:5px!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-compose-tools>[data-wall-pick]{
 min-height:30px!important;display:inline-flex!important;align-items:center!important;
 padding:4px 2px!important;border-radius:5px!important;
 color:#c7d2d2!important;font-size:12px!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-compose-tools>[data-wall-pick]:is(:hover,:focus-visible){
 color:rgba(var(--kyra-ui-224,203,175,252),1)!important;background:transparent!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-upload{
 margin-top:12px!important;padding:12px!important;
 border:1px solid #30434a!important;border-radius:8px!important;
 background:#0d1c22!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-upload [data-wall-drop]{
 display:grid!important;place-items:center!important;box-sizing:border-box!important;
 min-height:65px!important;padding:14px!important;border:1px dashed rgba(var(--kyra-ui-110,100,86,124),1)!important;
 border-radius:7px!important;background:#101f25!important;
 color:rgba(var(--kyra-ui-218,198,170,245),1)!important;font-size:12px!important;line-height:1.5!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-upload [data-wall-previews]{
 gap:8px!important;grid-template-columns:repeat(auto-fill,minmax(86px,1fr))!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-upload figure{
 border:1px solid #30454c!important;border-radius:6px!important;
 overflow:hidden!important;background:#111e24!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-upload img,
html body.role-public-world_owner .kf-world-root .kf-wall-upload video{
 height:95px!important;border-radius:0!important;object-fit:cover!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-upload figcaption{
 padding:5px 7px!important;font-size:10px!important;color:#a7b9be!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-post .kf-wall-menu>div,
html body.role-public-world_owner .kf-world-root .kf-wall-label-panel{
 background:#14252b!important;border:1px solid #364a50!important;
 border-radius:8px!important;box-shadow:0 12px 28px rgba(0,0,0,.45)!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-post .kf-wall-menu>summary{
 display:grid!important;place-items:center!important;min-width:30px!important;
 min-height:30px!important;border-radius:6px!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-post .kf-wall-menu>summary:hover{
 background:#1b2c32!important;color:rgba(var(--kyra-ui-224,203,175,252),1)!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-post .kf-wall-post-actions{
 gap:14px!important;min-height:31px!important;padding:5px 0!important;
}
@media(max-width:650px){
 html body.role-public-world_owner .kf-world-root .kf-wall-reaction-picker{
  gap:1px!important;padding:4px 5px!important;
 }
 html body.role-public-world_owner .kf-world-root .kf-wall-reaction-picker>button{
  width:29px!important;min-width:29px!important;height:30px!important;min-height:30px!important;font-size:18px!important;
 }
 html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-post.is-detail{
  padding:7px 9px 9px!important;
 }
 html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comments{
  min-height:88px!important;max-height:min(52dvh,380px)!important;
 }
 html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer [data-wall-comment-list]{
  max-height:min(25dvh,210px)!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html body.role-public-world_owner .kf-world-root .kf-wall-reaction-picker>button{transition:none!important}
}

/* Match and supersede the high-specificity KF276 'display:block' compatibility
   selector. The permanent conversation must remain a FLEX column. */
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-post-view.is-photo-viewer:not(.is-media-comments) .kf-wall-post.is-detail>.kf-wall-comments{
 display:flex!important;flex-direction:column!important;
 position:relative!important;transform:none!important;
 flex:0 1 auto!important;max-height:min(43dvh,375px)!important;
 margin:8px 0 0!important;padding:0 0 2px!important;
 border:0!important;border-top:1px solid #30434a!important;
 box-shadow:none!important;overflow:hidden!important;
}
@media(max-width:650px){
 html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-post-view.is-photo-viewer:not(.is-media-comments) .kf-wall-post.is-detail>.kf-wall-comments{
  max-height:min(52dvh,380px)!important;
 }
}
/* Final visual consistency: native date/select boxes and post-edit controls. */
html body.role-public-world_owner .kf-world-root .kf-wall-history[open]>form{
 display:flex!important;align-items:end!important;gap:10px 12px!important;
 padding:12px 0 5px!important;flex-wrap:wrap!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-history select,
html body.role-public-world_owner .kf-world-root .kf-wall-history input[type=date]{
 appearance:auto!important;box-sizing:border-box!important;
 min-height:38px!important;max-width:100%!important;
 background:#13232a!important;color:#dce7e6!important;
 border:1px solid #344b50!important;border-radius:6px!important;
 padding:7px 10px!important;font-size:12px!important;
 box-shadow:none!important;color-scheme:dark!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-edit{
 padding:12px 0 4px!important;margin-top:9px!important;
 border-top:1px solid #293d42!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-edit>textarea[name=body]{
 display:block!important;box-sizing:border-box!important;width:100%!important;
 min-height:90px!important;padding:10px 12px!important;
 border:1px solid #3a5057!important;border-radius:7px!important;
 color:#e4eeee!important;background:#11232a!important;
 line-height:1.5!important;font-size:13px!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-edit>button{
 min-height:32px!important;margin:9px 8px 4px 0!important;
 padding:6px 12px!important;border-radius:5px!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-history :is(input,select):focus-visible,
html body.role-public-world_owner .kf-world-root .kf-wall-edit>textarea[name=body]:focus-visible{
 outline:1px solid rgba(var(--kyra-ui-202,183,158,227),1)!important;outline-offset:2px!important;
}




/* KF199 v6 — Clean in-card editing without extra panels or native file widgets. */
.kf-world-root .kf-wall-edit[hidden],
.kf-world-root .kf-wall-comment-editor[hidden]{display:none!important}
html body .kf-world-root .kf-wall-post.is-editing > .kf-wall-title,
html body .kf-world-root .kf-wall-post.is-editing > .kf-wall-body,
html body .kf-world-root .kf-wall-post.is-editing > .kf-wall-media,
html body .kf-world-root .kf-wall-post.is-editing > .kf-wall-locked,
html body .kf-world-root .kf-wall-post.is-editing > .kf-wall-ai,
html body .kf-world-root .kf-wall-post.is-editing > .kf-wall-post-actions,
html body .kf-world-root .kf-wall-post.is-editing > .kf-wall-comments {display:none!important}
html body .kf-world-root .kf-wall-post.is-editing .kf-wall-menu{display:none!important}
html body .kf-world-root .kf-wall-post .kf-wall-edit{
 display:block!important;box-sizing:border-box!important;width:100%!important;
 margin:10px 0 0!important;padding:0!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit[hidden]{display:none!important}
html body .kf-world-root .kf-wall-post .kf-wall-edit > textarea[name="body"]{
 display:block!important;box-sizing:border-box!important;width:100%!important;
 min-height:84px!important;padding:12px 13px!important;margin:0 0 12px!important;
 color:#e3e9e8!important;background:#12242b!important;
 border:1px solid #354c52!important;border-radius:9px!important;
 font-size:14px!important;line-height:1.5!important;outline:none!important;
 box-shadow:none!important;resize:vertical!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit > textarea[name="body"]:focus{
 border-color:rgba(var(--kyra-ui-172,156,134,194),1)!important;box-shadow:none!important;outline:none!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-media{
 display:grid!important;gap:10px!important;min-width:0!important;
 margin:0 0 11px!important;padding:12px!important;
 border:1px solid #2c4046!important;border-radius:9px!important;
 background:#0d1c22!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-media > strong{
 font-size:12px!important;font-weight:600!important;color:#dbe4e4!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-existing,
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-new{
 display:grid!important;grid-template-columns:repeat(auto-fill,minmax(74px,84px))!important;
 justify-content:start!important;gap:8px!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-media-card{
 aspect-ratio:1!important;width:100%!important;margin:0!important;
 border-radius:7px!important;overflow:hidden!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-add{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:9px 12px!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-photo-pick{
 position:relative!important;display:inline-flex!important;align-items:center!important;
 justify-content:center!important;gap:7px!important;cursor:pointer!important;
 min-height:34px!important;width:auto!important;max-width:100%!important;
 margin:0!important;padding:7px 11px!important;box-sizing:border-box!important;
 border:1px solid rgba(var(--kyra-ui-134,121,105,151),1)!important;border-radius:7px!important;
 background:#18282c!important;color:rgba(var(--kyra-ui-237,209,184,252),1)!important;
 font:600 12px/1.3 'DM Sans',sans-serif!important;box-shadow:none!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-photo-pick:hover{
 background:#253133!important;border-color:rgba(var(--kyra-ui-208,188,162,234),1)!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-photo-pick svg{width:15px!important;height:15px!important}
html body .kf-world-root .kf-wall-post .kf-wall-edit [data-wall-edit-files],
html body .kf-world-root .kf-wall-post .kf-wall-edit [data-wall-edit-files]+.custom-file-control,
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-file-image-preview{
 position:absolute!important;width:1px!important;height:1px!important;
 opacity:0!important;overflow:hidden!important;pointer-events:none!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-add>small{
 flex:1 1 160px!important;color:#a1b0b3!important;font-size:11px!important;line-height:1.45!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-footer{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 flex-wrap:wrap!important;gap:12px!important;
 padding-top:12px!important;border-top:1px solid #2d4046!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-labels,
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-actions{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-labels>label{
 display:inline-flex!important;align-items:center!important;gap:6px!important;
 margin:0!important;padding:5px 8px!important;
 background:#14252a!important;border:1px solid #34484d!important;
 border-radius:6px!important;color:#c6d3d3!important;
 font-size:11px!important;line-height:1.2!important;cursor:pointer!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-labels>label:has(input:checked){
 border-color:rgba(var(--kyra-ui-170,154,133,191),1)!important;color:rgba(var(--kyra-ui-236,209,184,252),1)!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-labels input[type=checkbox]{
 appearance:auto!important;width:14px!important;height:14px!important;min-width:14px!important;
 min-height:14px!important;margin:0!important;padding:0!important;accent-color:rgba(var(--kyra-ui-224,203,175,252),1)!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-actions>button,
html body .kf-world-root .kf-wall-comment-editor .kf-wall-comment-edit-actions>button{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-width:72px!important;min-height:34px!important;margin:0!important;padding:7px 13px!important;
 font:600 12px/1.2 'DM Sans',sans-serif!important;border-radius:7px!important;
 box-shadow:none!important;cursor:pointer!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-actions>button[type=submit],
html body .kf-world-root .kf-wall-comment-editor .kf-wall-comment-edit-actions>button[type=submit]{
 background:linear-gradient(180deg,rgba(var(--kyra-ui-237,209,184,252),1),rgba(var(--kyra-ui-219,198,171,246),1))!important;color:#151b19!important;
 border:1px solid rgba(var(--kyra-ui-228,205,178,252),1)!important;
}
html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-actions>button:not([type=submit]),
html body .kf-world-root .kf-wall-comment-editor .kf-wall-comment-edit-actions>button:not([type=submit]){
 background:#18292f!important;color:#d9e2e2!important;border:1px solid #465a60!important;
}
html body .kf-world-root .kf-wall-comment-editor{
 display:block!important;box-sizing:border-box!important;max-width:100%!important;
 margin:8px 0 5px!important;padding:9px!important;
 border:1px solid #30464c!important;border-radius:8px!important;background:#0d1d22!important;
}
html body .kf-world-root .kf-wall-comment-editor[hidden]{display:none!important}
html body .kf-world-root .kf-wall-comment-editor textarea[name="body"]{
 display:block!important;box-sizing:border-box!important;width:100%!important;
 min-height:60px!important;margin:0!important;padding:10px 11px!important;
 border:1px solid #3c535a!important;border-radius:7px!important;
 background:#13262d!important;color:#e0e9e8!important;box-shadow:none!important;
 outline:none!important;resize:vertical!important;font-size:14px!important;line-height:1.5!important;
}
html body .kf-world-root .kf-wall-comment-editor .kf-wall-comment-edit-actions{
 display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important;margin-top:8px!important;
}
@media(max-width:650px){
 html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-footer{align-items:stretch!important;gap:10px!important}
 html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-actions{width:100%!important;justify-content:flex-end!important}
 html body .kf-world-root .kf-wall-post .kf-wall-edit .kf-wall-edit-add>small{flex-basis:100%!important}
 html body .kf-world-root .kf-wall-comment-editor textarea[name=body]{font-size:16px!important}
}

/* KF199 v8 — match the standard site toast exactly, including inside the
   native World post dialog. The site's kf-toasts.css supplies the actual
   colours, checkmark, close button, typography and shadow. */
html body .kf-world-root .kf-wall-toast.kf-toast{
  position:fixed;
  top:max(16px,env(safe-area-inset-top));
  left:50%;right:auto;bottom:auto;
  margin:0;
  box-sizing:border-box;
  width:min(540px,calc(100vw - 28px));
  max-width:calc(100vw - 28px);
  display:grid;
  transform:translate(-50%,-12px);
  text-align:left;
  pointer-events:auto;
  z-index:2147483000;
}
html body .kf-world-root .kf-wall-toast.kf-toast.kf-toast--visible{
  opacity:1;
  transform:translate(-50%,0);
}
html body .kf-world-root .kf-wall-toast[hidden]{display:none!important}
@media(max-width:600px){
  html body .kf-world-root .kf-wall-toast.kf-toast{
    top:max(9px,env(safe-area-inset-top));
    width:calc(100vw - 20px);
    max-width:calc(100vw - 20px);
  }
}

/* KF199 v7 — keep the entire photo-comment composer visible.
   Only the comment LIST can scroll; the input and send button never shrink
   underneath the rounded bottom edge of the photo dialog. */
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-post.is-detail > .kf-wall-comments,
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-post-view.is-photo-viewer:not(.is-media-comments) .kf-wall-post.is-detail > .kf-wall-comments {
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    flex:0 0 auto!important;
    flex-shrink:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:min(55dvh,420px)!important;
    overflow:hidden!important;
    padding:0 0 10px!important;
    margin:8px 0 0!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-media.is-wall-vertical {
    flex:1 1 0!important;
    min-height:0!important;
    max-height:none!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-photo-frame:not([hidden]) {
    min-height:0!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-thread-heading {
    flex:0 0 auto!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer [data-wall-comment-list] {
    flex:0 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comment-entry {
    box-sizing:border-box!important;
    flex:0 0 auto!important;
    flex-shrink:0!important;
    min-height:0!important;
    margin:7px 0 0!important;
    padding:8px 0 0!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-comment-entry > .kf-wall-comment-form {
    flex:1 1 auto!important;
    min-width:0!important;
    min-height:38px!important;
}
@media (max-height:420px) {
    html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-photo-viewer .kf-wall-post.is-detail > .kf-wall-comments {
        max-height:calc(100dvh - 96px)!important;
    }
}


/* KF199 — Worlds Wall: separate post discussion and photo reactions. */
html body.role-public-world_owner .kf-world-root [data-wall-feed] .kf-wall-feed-discussion{
  display:flex!important;flex-direction:column;gap:8px;margin:0;padding:10px 0 6px;
  border:0;background:transparent;box-shadow:none;min-width:0;
}
html body.role-public-world_owner .kf-world-root [data-wall-feed] .kf-wall-feed-discussion[hidden]{display:none!important}
html body.role-public-world_owner .kf-world-root [data-wall-feed] .kf-wall-feed-discussion .kf-wall-thread-heading{
  font-size:12px;color:rgba(var(--kyra-ui-222,201,173,250),1);border:0;margin:0;padding:4px 0;
}
html body.role-public-world_owner .kf-world-root [data-wall-feed] .kf-wall-feed-discussion [data-wall-comment-list]{
  max-height:300px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
}
html body.role-public-world_owner .kf-world-root [data-wall-feed] .kf-wall-feed-discussion .kf-wall-comment-entry{
  margin-top:5px!important;border-top:1px solid #2b3e43;padding-top:10px;
}
/* The left-hand control expresses the viewer's own emoji; the total and names
   belong to the clickable reaction summary on the right. */
html body.role-public-world_owner .kf-world-root .kf-wall-photo-actions .kf-wall-photo-reaction-summary{
  margin-left:auto!important;display:inline-flex!important;align-items:center!important;
  gap:1px!important;padding:5px 3px!important;min-height:28px;
  background:transparent!important;border:0!important;box-shadow:none!important;
  color:#d0dcda!important;cursor:pointer;
}
html body.role-public-world_owner .kf-world-root .kf-wall-photo-reaction-summary span{font-size:17px;line-height:1.3}
html body.role-public-world_owner .kf-world-root .kf-wall-photo-reaction-summary b{
  color:#a9bec3!important;font-size:11px!important;font-weight:500!important;margin-left:5px;
}
html body.role-public-world_owner .kf-world-root .kf-wall-photo-reaction-summary:hover b{color:rgba(var(--kyra-ui-229,205,179,252),1)!important}
/* Multi-photo viewer: author and close action share one surface. No title bar. */
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-post-view.is-multi-photo-post .kf-wall-dialog-head{
  display:none!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-post-view.is-multi-photo-post{
  background:#0c181d!important;padding-top:0!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-multi-photo-post .kf-wall-post.is-detail{
  background:#0c181d!important;border:0!important;box-shadow:none!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-multi-photo-post .kf-wall-post-head{
  min-height:43px!important;margin:0 0 9px!important;gap:10px!important;
  border-bottom:0!important;padding:0!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-multi-photo-post .kf-wall-post-head .kf-wall-menu{
  display:none!important;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-multi-photo-post .kf-wall-detail-close{
  display:inline-flex!important;justify-content:center;align-items:center;
  box-sizing:border-box;flex:0 0 30px;margin-left:auto;padding:0;
  width:30px;min-width:30px;height:30px;min-height:30px;border:0;
  background:transparent;color:#e6edeb;font:400 24px/1 Arial,sans-serif;
  border-radius:6px;cursor:pointer;
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-multi-photo-post .kf-wall-detail-close:hover{
  background:#16262a;color:rgba(var(--kyra-ui-224,203,175,252),1);
}
html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-multi-photo-post .kf-wall-detail-close:focus-visible{
  outline:2px solid rgba(var(--kyra-ui-224,203,175,252),1);outline-offset:2px;
}
@media(max-width:650px){
  html body.role-public-world_owner .kf-world-root .kf-wall-dialog.is-multi-photo-post .kf-wall-post-head{min-height:39px!important}
}


/* KF199 - Worlds-only reaction polish: match the established KF photo-post icons.
   Scope intentionally excludes all other post types and areas of the website. */
html body .kf-world-root .kf-wall-like > .kf-wall-reaction-picker {
  bottom:calc(100% - 1px)!important;left:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:2px!important;padding:5px 7px!important;
  width:max-content!important;max-width:calc(100vw - 16px)!important;
  border:1px solid #354950!important;border-radius:24px!important;
  background:#172c35!important;box-shadow:0 8px 26px #0009!important;
  box-sizing:border-box!important;z-index:150!important;
}
html body .kf-world-root .kf-wall-like > .kf-wall-reaction-picker[hidden]{display:none!important}
html body .kf-world-root .kf-wall-like > .kf-wall-reaction-picker > button{
  appearance:none!important;flex:0 0 25px!important;
  width:25px!important;min-width:25px!important;
  height:27px!important;min-height:27px!important;
  display:grid!important;place-items:center!important;
  margin:0!important;padding:2px!important;
  border:0!important;border-radius:50%!important;
  background:transparent!important;box-shadow:none!important;
  font:400 18px/1 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif!important;
  cursor:pointer!important;transition:transform .1s ease!important;
}
html body .kf-world-root .kf-wall-like > .kf-wall-reaction-picker > button:hover,
html body .kf-world-root .kf-wall-like > .kf-wall-reaction-picker > button:focus-visible{
  transform:scale(1.1)!important;background:rgba(255,255,255,.06)!important;
}
/* Same heart, comment and selected-reaction proportions as ordinary KF posts. */
html body .kf-world-root .kf-wall-post-actions .kf-wall-like > [data-wall-reaction-main],
html body .kf-world-root .kf-wall-photo-reaction > [data-wall-reaction-main]{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:6px!important;min-width:28px!important;min-height:30px!important;
  padding:3px 5px!important;border:0!important;background:transparent!important;
  box-shadow:none!important;color:#b7c4c7;
  font:400 16px/1 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif!important;
}
html body .kf-world-root .kf-wall-post-actions .kf-wall-like > [data-wall-reaction-main] > .kf-icon,
html body .kf-world-root .kf-wall-photo-reaction > [data-wall-reaction-main] > .kf-icon,
html body .kf-world-root .kf-wall-post-actions [data-wall-comments] > .kf-icon,
html body .kf-world-root .kf-wall-photo-comments-button > .kf-icon{
  width:17px!important;height:17px!important;stroke-width:1.75!important;flex:none;
}
html body .kf-world-root .kf-wall-reaction-summary > span,
html body .kf-world-root .kf-wall-photo-reaction-summary > span{
  display:inline-grid!important;place-items:center!important;
  width:18px!important;height:18px!important;
  font:400 16px/1 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif!important;
}
html body .kf-world-root .kf-wall-reaction-summary > b,
html body .kf-world-root .kf-wall-photo-reaction-summary > b{
  font-size:11px!important;font-weight:400!important;line-height:1.4!important;
}
@media(max-width:650px){
  html body .kf-world-root .kf-wall-like > .kf-wall-reaction-picker{gap:2px!important;padding:5px 7px!important}
  html body .kf-world-root .kf-wall-like > .kf-wall-reaction-picker > button{
    width:25px!important;min-width:25px!important;height:27px!important;min-height:27px!important;font-size:18px!important;
  }
  /* Maintain accessible touch targets for the individual heart without enlarging the emoji popover. */
  html body .kf-world-root .kf-wall-post-actions .kf-wall-like > [data-wall-reaction-main],
  html body .kf-world-root .kf-wall-photo-reaction > [data-wall-reaction-main]{min-width:38px!important;min-height:38px!important}
}
@media(prefers-reduced-motion:reduce){
  html body .kf-world-root .kf-wall-like > .kf-wall-reaction-picker > button{transition:none!important}
}


/* KF199 — fix Worlds post discussions: override legacy feed card hide rule.
   This applies only to general post comments when opened, not photo comments. */
html body.role-public-world_owner .kf-world-root [data-wall-feed]
.kf-wall-post:not(.is-detail) > .kf-wall-feed-discussion:not([hidden]) {
  display:flex!important;
  flex-direction:column!important;
  visibility:visible!important;
}
html body.role-public-world_owner .kf-world-root [data-wall-feed]
.kf-wall-post:not(.is-detail) > .kf-wall-feed-discussion[hidden] {
  display:none!important;
}
