/* One short post, readable cards and bounded pages in the existing JK night theme. */
#jk-thread-live-dialog{box-sizing:border-box;width:min(calc(100% - 24px),580px);max-height:calc(100dvh - 24px);margin:auto;padding:18px;border:1px solid #513340;border-radius:24px;background:#101014;color:#f5f2f4;color-scheme:dark;font:16px/1.6 var(--font-ui);overflow:auto}
#jk-thread-live-dialog::backdrop{background:#080609cc;backdrop-filter:blur(5px)}
#jk-thread-live-dialog *{box-sizing:border-box;min-width:0}
.jk-live-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.jk-live-head h2{font-size:18px;margin:0}.jk-live-button{min-height:44px;min-width:44px;border:1px solid #353139;border-radius:12px;padding:9px 13px;font:600 14px/1.5 var(--font-ui);background:#1b191f;color:#f5f2f4;cursor:pointer}
.jk-live-button.primary{background:#ff4966;color:#16040a;border-color:transparent}.jk-live-button:disabled{opacity:.5;cursor:wait}
.jk-live-button[aria-pressed=true]{border-color:#bc728f;background:#492638;color:#ffe1ea}
.jk-live-button:focus-visible,.jk-live-post-body:focus-visible{outline:3px solid #ff7493;outline-offset:3px}
.jk-live-field{width:100%;border:1px solid #353139;border-radius:16px;padding:12px 14px;background:#1b191f;color:#f5f2f4;font:16px/1.75 var(--font-ui);resize:vertical;min-height:140px;margin:8px 0}
.jk-live-count{font-size:12px;color:#a99ba5;text-align:right;margin:0 0 10px}
.jk-live-note{font-size:13px;color:#b1a2ac;line-height:1.65;margin:10px 0}.jk-live-note[data-error=true]{color:#ff9bb0}
.jk-live-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.jk-live-topic{display:flex;gap:6px;flex-wrap:wrap}.jk-live-topic button{font-size:13px;padding:7px 11px;border-radius:999px}
.jk-live-near{display:flex;align-items:flex-start;gap:10px;font-size:14px;margin:16px 0}.jk-live-near input{width:20px;height:20px;flex:none;accent-color:#ff4966;margin-top:2px}
.jk-live-near small{display:block;color:#a99ba5;font-size:12px}
.jk-live-footer{display:flex;justify-content:space-between;gap:10px;margin-top:18px;padding-top:14px;border-top:1px solid #353139;position:sticky;bottom:-18px;background:#101014;padding-bottom:16px}
.jk-live-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;overflow:hidden;border-radius:16px;margin:14px 0;background:#08080b}
.jk-live-media[data-count='1']{grid-template-columns:1fr}.jk-live-media[data-count='3']>:first-child{grid-column:1/-1}
.jk-live-media img{display:block;width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;border:0}
.jk-live-media[data-count='1'] img{aspect-ratio:4/3;max-height:420px}
.jk-live-media video{display:block;grid-column:1/-1;width:100%;max-height:440px;aspect-ratio:4/3;object-fit:contain;background:#08080b}
.jk-live-media button{border:0;padding:0;background:none;color:inherit;position:relative;min-height:44px;overflow:hidden}
.jk-live-media .jk-live-remove{position:absolute;right:6px;top:6px;width:44px;height:44px;border-radius:50%;background:#111b;color:#fff;font-size:22px}
.jk-live-shelves{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid #353139;padding-bottom:10px;margin:4px 0 14px}
.jk-live-shelves button{flex:none;font-size:13px;border:0;padding:9px 11px;border-radius:10px;background:transparent}.jk-live-shelves button[aria-pressed=true]{background:#492638}
.jk-live-card{border:1px solid #353139;border-radius:20px;background:#17151b;padding:16px;margin-bottom:12px;overflow:hidden;content-visibility:auto;contain-intrinsic-size:auto 300px}
.jk-live-byline{display:flex;align-items:center;gap:10px;color:#f1e6ed;font-size:14px}.jk-live-byline small{display:block;color:#a99ba5;font-size:11px}.jk-live-avatar{display:grid;place-items:center;background:#492638;color:#ffd2e0;width:36px;height:36px;border-radius:50%;flex:none;font-weight:700}
.jk-live-post-body{display:block;width:100%;border:0;background:none;color:inherit;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 0 0;font:500 16px/1.75 var(--font-ui);cursor:pointer}
.jk-live-reactions{display:flex;gap:4px;margin:12px 0 0;flex-wrap:wrap}.jk-live-reactions button{font-size:12px;min-width:44px;min-height:44px;padding:7px 9px;border-radius:999px;background:transparent}
.jk-live-card .jk-live-actions{margin-bottom:0}.jk-live-card .jk-live-actions button{font-size:12px;padding:7px 10px;background:none}
.jk-live-pages{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0}.jk-live-empty{padding:22px;border:1px dashed #44313d;border-radius:20px;margin:12px 0}.jk-live-empty h3{font-size:18px;margin:0 0 10px}
.jk-live-comment{padding:16px 0;border-bottom:1px solid #353139}.jk-live-comment>p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0;font-size:15px}.jk-live-quote{padding:9px 12px;border-left:2px solid #bd758f;border-radius:4px;background:#231b23;color:#bdb0b9;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.jk-live-progress{width:100%;accent-color:#ff4966}.jk-live-counter-bad{color:#ff9bb0}
.jk-live-motion{display:flex;gap:6px;align-items:center;justify-content:center;min-height:100px}.jk-live-motion i{width:7px;height:7px;border-radius:50%;background:#e680a1;animation:jkLivePulse 1s ease-in-out infinite alternate}.jk-live-motion i:nth-child(2){animation-delay:.2s}.jk-live-motion i:nth-child(3){animation-delay:.4s}
@keyframes jkLivePulse{to{opacity:.25;transform:translateY(-5px)}}
@media(prefers-reduced-motion:reduce){.jk-live-motion i{animation:none}}
@media(max-width:359px){#jk-thread-live-dialog{padding:14px}.jk-live-card{padding:13px}.jk-live-shelves button{padding:9px 10px}.jk-live-footer{bottom:-14px}}

/* Composer UX polish: one clear location opt-in, modern upload actions and publish-first hierarchy. */
#jk-thread-live-dialog{border-color:#49313b;background:#111015;padding:18px 18px 12px}
#jk-thread-live-dialog .jk-live-head h2{font-size:21px;letter-spacing:-.02em}
#jk-thread-live-dialog .jk-live-field{min-height:112px;max-height:224px;resize:none;overflow-y:auto;margin:4px 0 0;padding:13px 15px;line-height:1.65}
#jk-thread-live-dialog .jk-live-count{margin:3px 0 11px;font-variant-numeric:tabular-nums}
#jk-thread-live-dialog .jk-live-topic-picker{margin:0 0 12px}
#jk-thread-live-dialog .jk-live-topic-picker>summary{display:list-item;cursor:pointer;margin:0 0 10px;min-height:30px;color:#bcaeb9}
#jk-thread-live-dialog .jk-live-topic{gap:7px}
#jk-thread-live-dialog .jk-live-topic .jk-live-button{border-radius:999px;min-height:40px;padding:7px 12px;font-size:13px}
#jk-thread-live-dialog .jk-live-actions.jk-live-add-media{gap:10px;flex-wrap:nowrap;margin:12px 0 2px}
#jk-thread-live-dialog .jk-live-media-add{display:inline-flex;flex:1;justify-content:center;align-items:center;gap:9px;min-height:52px;padding:10px 8px;font-size:14px;border-color:#3f3942;background:#201d24;color:#f7f3f7;transition:background-color .18s,border-color .18s}
#jk-thread-live-dialog .jk-live-media-add svg{flex:none}
#jk-thread-live-dialog .jk-live-media-add:hover{background:#29232d;border-color:#7e5162}
#jk-thread-live-dialog .jk-live-media:empty{display:none}
#jk-thread-live-dialog .jk-live-media-hint{margin:5px 0 14px}
#jk-thread-live-dialog .jk-live-near{position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0 14px;padding:9px 0;cursor:pointer}
#jk-thread-live-dialog .jk-live-near-copy{flex:1;min-width:0}
#jk-thread-live-dialog .jk-live-near-copy strong{display:block;font-size:14px;line-height:1.4;color:#f5f2f4;font-weight:650}
#jk-thread-live-dialog .jk-live-near-copy small{margin-top:4px;font-size:12px;line-height:1.55;color:#afa2ac}
#jk-thread-live-dialog .jk-live-near input[type=checkbox]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
#jk-thread-live-dialog .jk-live-switch{position:relative;display:block;flex:none;width:44px;height:26px;border-radius:999px;background:#45404a;border:1px solid #665c68;transition:background-color .18s,border-color .18s}
#jk-thread-live-dialog .jk-live-switch:before{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0006;transition:transform .18s}
#jk-thread-live-dialog .jk-live-near input:checked+.jk-live-switch{background:#ff4f61;border-color:#ff4f61}
#jk-thread-live-dialog .jk-live-near input:checked+.jk-live-switch:before{transform:translateX(18px)}
#jk-thread-live-dialog .jk-live-near input:focus-visible+.jk-live-switch{outline:3px solid #ff91a0;outline-offset:3px}
#jk-thread-live-dialog .jk-live-footer{align-items:stretch;gap:9px;margin-top:13px;padding:14px 0 8px;bottom:-12px;background:#111015;box-shadow:0 -12px 22px #111015ed}
#jk-thread-live-dialog .jk-live-footer .jk-live-save{flex:1;min-width:90px;border:0;background:transparent;color:#b9acb7}
#jk-thread-live-dialog .jk-live-footer .jk-live-button.primary{flex:2;min-height:50px;border:1px solid #ff4f61;background:#ff4f61;color:#fff;font-size:16px;font-weight:700;box-shadow:0 5px 16px #ff4f612e}
#jk-thread-live-dialog .jk-live-footer .jk-live-button.primary:disabled{opacity:.50;box-shadow:none;cursor:not-allowed}
#jk-thread-live-dialog .jk-live-footer .jk-live-save:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:359px){#jk-thread-live-dialog{padding:16px 14px 10px}#jk-thread-live-dialog .jk-live-footer{bottom:-10px}#jk-thread-live-dialog .jk-live-media-add{gap:6px;font-size:13px}}
@media(prefers-reduced-motion:reduce){#jk-thread-live-dialog .jk-live-media-add,#jk-thread-live-dialog .jk-live-switch,#jk-thread-live-dialog .jk-live-switch:before{transition:none}}

/* Android touch-highlight correction: the Nearby row is not a selected card.
   Eliminate WebKit's native blue full-width tap flash; switch track is the only color signal. */
#jk-thread-live-dialog .jk-live-near,
#jk-thread-live-dialog .jk-live-near *,
#jk-thread-live-dialog .jk-live-near::before,
#jk-thread-live-dialog .jk-live-near::after{
  -webkit-tap-highlight-color:transparent;
}
#jk-thread-live-dialog .jk-live-near{
  background:transparent;
  -webkit-user-select:none;
  user-select:none;
  touch-action:manipulation;
}
#jk-thread-live-dialog .jk-live-near:active,
#jk-thread-live-dialog .jk-live-near:focus-within,
#jk-thread-live-dialog .jk-live-near:has(input:checked){
  background:transparent;
  box-shadow:none;
}
#jk-thread-live-dialog .jk-live-near input{
  -webkit-tap-highlight-color:transparent;
}


