/* === Tell the Universe – styles.css (merged) === */
:root{
  /* Purple Cosmic Theme */
  --bg-0:#0c0613;
  --bg-1:#130a22;
  --fg:#eadeff;
  --muted:#b9a6f5;
  --line:rgba(185,127,255,.25);
  --line2:rgba(168,85,247,.35);
  --panel:rgba(28,15,46,.60);
  --panel-2:rgba(28,15,46,.50);
  --accent:#a855f7;
  --accent-2:#c084fc;
  /* Dark UI hint */
  color-scheme: dark;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; color:var(--fg);
  font-family:"Quicksand", system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size:16px; line-height:1.45;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  position: relative;
  isolation: isolate;

  /* cosmic gradient */
  background:
    radial-gradient(60% 90% at 50% 0%, var(--bg-1), transparent 60%),
    radial-gradient(70% 120% at 50% 100%, #0a0714, transparent 55%),
    linear-gradient(180deg, #090512 0%, var(--bg-0) 70%);
}

body::before{
  content:none;
}

body::after{
  content:none;
}
/* reduce overscroll jank */
html, body{ overscroll-behavior: none; }

/* Main column (above floating posts) */
.wrap{
  max-width:400px; margin:0 auto; padding:56px 18px; position:relative; z-index:3;
  /* Respect safe areas (notches) horizontally */
  padding-left: calc(18px + env(safe-area-inset-left));
  padding-right: calc(18px + env(safe-area-inset-right));
  /* Also respect safe areas vertically */
  padding-top:    calc(56px + env(safe-area-inset-top));
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

/* Hard cap the visual width of floating posts */
.post{
  max-width: min(var(--post-max-w, 250px), 92vw);
  overflow-wrap: anywhere;   /* prevent long links from stretching the card */
}

/* (optional) clamp lines instead of chopping text in JS */
.post .msg{
  display: -webkit-box;
  -webkit-line-clamp: var(--post-max-lines, 6);
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* Title + subtitle */
h1{
  margin:0 0 8px; font-size:20px;
  color:#f5eaff;
  text-shadow:0 2px 16px rgba(168,85,247,.25);
  letter-spacing:.3px;
}
.sub{
  color: var(--muted);
  font-size: 10px;    /* <- adjust as you like */
  line-height: 1.4;
}

/* tiny links above the main title, with space from top/right */
.micro-links{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-bottom:6px;
  line-height:1;

  /* space from top and right (respect notches/safe areas) */
  padding-top: calc(8px + env(safe-area-inset-top));
  padding-right: calc(20px + env(safe-area-inset-right));
}

.micro-links a{
  font-size:.78rem;
  font-weight:600;
  color:#cfc7ff;
  opacity:.55;
  text-decoration:none;
  transition:opacity .15s ease, text-decoration-color .15s ease;
  text-underline-offset: 3px;
}

.micro-links a:hover,
.micro-links a:focus{ opacity:.95; text-decoration:underline; }

.micro-links .dot{ color:#cfc7ff; opacity:.35; font-size:.78rem; }

/* small screens – nudge spacing a bit */
@media (max-width:640px){
  .micro-links{
    gap:6px;
    margin-bottom:4px;
    padding-top: calc(6px + env(safe-area-inset-top));
    padding-right: calc(14px + env(safe-area-inset-right));
  }
  .micro-links a, .micro-links .dot{ font-size:.74rem; }

  .wrap{
    padding-top:    calc(32px + env(safe-area-inset-top));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* Composer panel as glass */
#postForm{
  position:relative; z-index:3;
  background:linear-gradient(180deg, var(--panel), var(--panel-2));
  border:1px solid var(--line);
  border-radius:20px;
  padding:16px;
-webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}

/* Inputs */
input, textarea{
  width:100%;
  background: linear-gradient(180deg, rgba(23,12,34,.85), rgba(20,10,31,.75));
  color:var(--fg);
  border: 1px solid rgba(255,255,255,.15);
outline:none;
  border-radius:14px;
  padding:12px;
  resize:none;
}
textarea{ height:120px; }

/* Focus */
input:focus, textarea:focus{
  border-color: rgba(168,85,247,.6);
}

/* Placeholder */
input::placeholder, textarea::placeholder{
  color:#8f77d6; opacity:.95;
}

/* Kill Chrome's white autofill (+states hardened) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
  -webkit--webkit-text-fill-color: var(--fg) !important;
  caret-color: var(--fg);
}
/* Firefox autofill parity */
input:-moz-autofill{
-moz-text-fill-color: var(--fg);
  caret-color: var(--fg);
}

/* Footer row under textarea */
.row{ display:flex; justify-content:space-between; align-items:center; margin-top:10px; }
.muted{ color:var(--muted); font-size:13px; }

/* Primary button */
button{
  border:0; border-radius:16px; background:#8b5cf6; color:white;
  padding:10px 18px; font-weight:700; cursor:pointer;
transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
button:hover{ background:#9a6df8; box-shadow:0 10px 34px rgba(154,109,248,.45); transform:translateY(-1px); }
button:active{ transform:translateY(0); }
button[disabled]{ opacity:.55; cursor:not-allowed; }

/* Floating posts layer */
.feed{
  position:fixed; inset:0; overflow:hidden; pointer-events:none; z-index:2;
}
.feed .post{ z-index:0; }
/* Make the Share button clickable despite pointer-events:none */
.feed .post .post-share{ pointer-events:auto; }

/* --- Rating button & popover --- */
.post .actions { display: flex; align-items: center; gap: .35rem; }
.post .btn-icon { appearance: none; border: 0; background: var(--panel-2);
color: var(--fg); padding: .35rem .5rem; border-radius: .65rem;
line-height: 1; display: inline-flex; align-items: center; gap:.35rem;
cursor: pointer; transition: transform .15s ease, background .2s ease; }
.post .btn-icon:hover { background: var(--panel); }
.post .btn-icon:active { transform: translateY(1px) scale(.98); }
.post .btn-icon .badge { font-size:.8em; opacity:.9; }

.post .rate-pop { position: absolute; z-index: 50; inset: auto auto 100% 0;
transform: translateY(-.4rem); display: none; padding: .35rem .4rem;
background: var(--panel); border: 1px solid var(--line2); border-radius: .9rem;
backdrop-filter: blur(4px); box-shadow: 0 8px 30px rgba(0,0,0,.35);
white-space: nowrap; }
.post .rate-pop.open { display: flex; gap: .2rem; }
.post .rate-pop button { border:0; background: transparent; cursor: pointer;
font-size: 1.15rem; padding: .2rem .28rem; line-height: 1.1; border-radius: .5rem; }
.post .rate-pop button:hover { background: rgba(255,255,255,.07); }

/* small badge tint per rating */
.rate-badge { font-size:.95em; }
.rate-shooting { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,.6); }
.rate-sun { color: #fde047; }
.rate-moon { color: #e0e7ff; }
.rate-heart { color: #60a5fa; }
.rate-hole { color: #94a3b8; }

/* Ensure action area is a positioning context */
.post .actions { position: relative; }

/* Post text */
.post .msg{
  color:#f3eaff;
  max-width:68ch;
  word-break:break-word;
  hyphens:auto;
  text-wrap:pretty;
}

/* Post glass cards */
.post{
  position:absolute;
  padding:12px 14px;
  border-radius:16px;
  background: linear-gradient(180deg, rgba(23,12,34,.85), rgba(20,10,31,.75));
  border:1px solid rgba(255,255,255,.15);
/* GPU-friendly transform + content-visibility perf */
  content-visibility:auto;
  contain-intrinsic-size:120px 220px;
  transform: translate3d(var(--x,0), var(--y,0), 0) scale(var(--s,1)) rotate(var(--rot,0deg));
  will-change: transform;
}

/* Meta line */
.post > .meta{
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  margin-top: 8px;
}
.post > .meta i{ color:var(--accent-2); font-style:italic; font-weight:600; }
.post > .meta time{ opacity:.9; }

/* Intro pop */
.post.enter{ animation: post-pop .35s ease both; }
@keyframes post-pop{
  from{ opacity:0; transform: translate3d(var(--x,0), var(--y,0), 0) scale(calc(var(--s,1)*.96)) rotate(var(--rot,0deg)); }
  to{   opacity:1; transform: translate3d(var(--x,0), var(--y,0), 0) scale(var(--s,1)) rotate(var(--rot,0deg)); }
}

/* Starfield (behind everything) */
#stars{
  position:fixed; inset:0; pointer-events:none; z-index:1; display:block;
}

/* Header line: title + sound toggle */
.header-line{
  display:flex;
  align-items:baseline;            /* aligns button with headline text */
  justify-content:space-between;   /* title left, button right */
  gap:12px;
  margin-bottom:6px;
  position:relative;
  z-index:3; /* above floating posts */
}
.header-line h1{ margin:0; }

/* ===== Sound toggle (white-only, header variant) ===== */

/* Dock for the sound toggle (fixed top-left, outside the composer) */
#soundToggleDock{
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  left: calc(16px + env(safe-area-inset-left));
  z-index: 9999;
  pointer-events: none; /* allow only the button to receive clicks */
}
#soundToggleDock .sound-toggle{ pointer-events: auto; }


.sound-toggle,
.header-line .sound-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:12px;
  background: linear-gradient(180deg, rgba(23,12,34,.85), rgba(20,10,31,.75));
  border:1px solid rgba(255,255,255,0.10);
  color:#fff;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  user-select:none;
  pointer-events:auto;
transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.sound-toggle:hover,
.header-line .sound-toggle:hover{
  transform: translateY(-1px);
  background: rgba(26,14,43,0.92);
  border-color: rgba(168,85,247,0.35);
}
.sound-toggle:active,
.header-line .sound-toggle:active{ transform: translateY(0); }
.sound-toggle:focus-visible,
.header-line .sound-toggle:focus-visible{
  outline: none;
}

/* Dot: white-only; ON = brighter white, OFF = dimmer white */
.sound-toggle .dot,
.header-line .sound-toggle .dot{
  width:10px; height:10px; border-radius:50%;
  background: rgba(255,255,255,0.55);  /* OFF */
transition: background .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.sound-toggle.on .dot,
.header-line .sound-toggle.on .dot{
  background:#ffffff;               /* ON */
}

/* Label opacity cue */
.sound-toggle .label,
.header-line .sound-toggle .label{ opacity:.85; }
.sound-toggle.on .label,
.header-line .sound-toggle.on .label{ opacity:1; }

/* Motion preference: reduce extra motion for sensitive users */
@media (prefers-reduced-motion: reduce){
  .post.enter{ animation:none; }
  .header-line .sound-toggle,
  button{ transition:none; }
}

/* Android-only compact UI (tighter) */
html.is-android { font-size: 13.5px; }
@media (max-width: 540px){ html.is-android { font-size: 12.5px; } }

.is-android .wrap{
  max-width: 400px;
  padding: 32px 14px;
}

.is-android h1{
  font-size: 15px;
  letter-spacing: .15px;
  text-shadow: 0 2px 14px rgba(168,85,247,.20);
  margin-bottom: 6px;
}

.is-android #postForm{
  border-radius: 14px;
  padding: 10px;
}

.is-android input,
.is-android textarea{
  border-radius: 9px;
  padding: 8px;
  font-size: 13px;
}
.is-android textarea{ height: 88px; }

.is-android .row{ margin-top: 6px; } /* fixed stray “720p” token */
.is-android .muted{ font-size: 11.5px; }

.is-android button{
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 12px;
}

.is-android .sound-toggle,
.header-line .sound-toggle{
  padding: 5px 9px;
  font-size: 11px;
  border-radius: 9px;
}
.is-android .sound-toggle .dot{ width: 7px; height: 7px; }

.is-android .post{
  padding: 8px 10px;
  border-radius: 12px;
}
.is-android .post > .meta{ font-size: 8.5px; }

/* ======================= iOS-only compact UI (same as Android) ======================= */
html.is-ios { font-size: 13.5px; }
@media (max-width: 540px){ html.is-ios { font-size: 12.5px; } }

.is-ios .wrap{
  max-width: 400px;
  padding: 32px 14px;
}

.is-ios h1{
  font-size: 15px;
  letter-spacing: .15px;
  text-shadow: 0 2px 14px rgba(168,85,247,.20);
  margin-bottom: 6px;
}

.is-ios #postForm{
  border-radius: 14px;
  padding: 10px;
}

.is-ios input,
.is-ios textarea{
  border-radius: 9px;
  padding: 8px;
  font-size: 13px;
}
.is-ios textarea{ height: 88px; }

.is-ios .row{ margin-top: 6px; }
.is-ios .muted{ font-size: 11.5px; }

.is-ios button{
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 12px;
}

.is-ios .sound-toggle,
.header-line .sound-toggle{
  padding: 5px 9px;
  font-size: 11px;
  border-radius: 9px;
}
.is-ios .sound-toggle .dot{ width: 7px; height: 7px; }

.is-ios .post{
  padding: 8px 10px;
  border-radius: 12px;
}
.is-ios .post > .meta{ font-size: 8.5px; }

/* Selection color consistent with theme */
::selection{ background: rgba(168,85,247,.35); color: #fff; }

/* Accessibility fallback if any element lacks strong focus styles */
:focus-visible{
  outline: 2px solid rgba(168,85,247,.75);
  outline-offset: 2px;
}

/* Backdrop-filter fallback for older browsers (outside feature block too) */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  #postForm {
    background: linear-gradient(180deg, rgba(28,15,46,.85), rgba(28,15,46,.70));
  }
}

/* === Essentials patch (append at end) === */

/* Prevent elastic overscroll jank */
html, body { overscroll-behavior: none; }

/* Share button remains clickable despite .feed { pointer-events:none } */
.feed .post .post-share { pointer-events: auto; }

/* Long-text safety in floating posts */
.post .msg {
  max-width: 68ch;
  word-break: break-word;
  hyphens: auto;
  text-wrap: pretty;
}

/* Performance: offscreen cards */
.post {
  content-visibility: auto;
  contain-intrinsic-size: 120px 220px;
  transform: translate3d(var(--x,0), var(--y,0), 0)
             scale(var(--s,1)) rotate(var(--rot,0deg));
}

/* Themed text selection */
::selection { background: rgba(168,85,247,.35); color: #fff; }

/* Higher contrast when requested */
@media (prefers-contrast: more){
  #postForm { border-color: rgba(168,85,247,.55); }
  .post { border-color: rgba(255,255,255,.28); }
}

/* Backdrop-filter fallback (older browsers) */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))){
  #postForm {
    background: linear-gradient(180deg, rgba(28,15,46,.85), rgba(28,15,46,.70));
  }
}

/* Firefox autofill parity */
input:-moz-autofill{
-moz-text-fill-color: var(--fg);
  caret-color: var(--fg);
}

/* ===== Mobile font sizing for floating posts (override-at-end) ===== */
@media (max-width: 640px){
  .post{ font-size: 0.95rem; line-height: 1.35; }
  .post .msg{ line-height: 1.35; }
  .post > .meta{ font-size: 9px; }
}
@media (max-width: 420px){
  .post{ font-size: 0.90rem; }
  .post .msg{ line-height: 1.3; }
  .post > .meta{ font-size: 7px; }
}



/* === Bottom-centered composer (ChatGPT-like) === */
:root{
  --composer-max-width: 640px;
  --composer-side-padding: 16px;
  --composer-bottom-gap: 18px;
  --composer-reserve-space: 230px; /* keeps header/content from feeling cramped */
}

/* Fixed dock for the input box */
#composerDock{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--composer-bottom-gap) + env(safe-area-inset-bottom));
  width: min(var(--composer-max-width), calc(100vw - (2 * var(--composer-side-padding)) - env(safe-area-inset-left) - env(safe-area-inset-right)));
  z-index: 6000;  will-change: transform;
  transition: transform 120ms ease;
}

/* Ensure the composer panel fills the dock */
#composerDock #postForm{
  margin: 0;
  width: 100%;
}

/* Make sure top content isn't visually crowded by the fixed composer */
.wrap{
  padding-bottom: calc(56px + var(--composer-reserve-space) + env(safe-area-inset-bottom));
}


/* === Composer redesign: single box + send arrow === */
#postForm{
  /* Match floating post card style */
  background: linear-gradient(180deg, rgba(23,12,34,.85), rgba(20,10,31,.75));
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-radius: 22px;
  position: relative;
  padding: 14px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "textarea textarea"
    "imagepanel imagepanel"
    "media submit"
    ". count";
  column-gap: 12px;
  row-gap: 12px;
  align-items: end;
}

/* Remove inner textarea chrome; the form is the box now */
#postForm textarea{
  grid-area: textarea;
  width: 100%;
  min-height: 32px;
  height: 32px;
  max-height: 88px;

  background: transparent;
  border: 0;
  outline: none;
  border-radius: 0;

  padding: 0;
  resize: none;

  color: var(--fg);
  line-height: 1.35;
}

/* Send button as an arrow (ChatGPT-like) */
#submitBtn{
  grid-area: submit;
  position: static;
  transform: none;

  width: 44px;
  height: 44px;

  border-radius: 999px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  justify-self: end;

  background: #8b5cf6;
  color: #ffffff;

  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

#submitBtn:hover{ transform: translateY(-1px); }
#submitBtn:active{ transform: none; }

#submitBtn:disabled{
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.55);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#submitBtn svg{ width: 18px; height: 18px; }

/* Composer counter (small, under send arrow) */
#postForm #count{
  grid-area: count;
  position: static;
  width: 44px;              /* match send button width */
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  user-select: none;
  z-index: 2;
  justify-self: end;
  margin-top: -6px;
}
/* Keep legacy elements hidden while preserving JS compatibility */
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}




/* === Floating post actions: make Share/Like less dominant (date-like) === */
.post .actions{
  gap: .4rem;
}

.post .btn-icon{
  background: transparent;
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  padding: .18rem .40rem;
  border-radius: .7rem;
  font-size: 10px;
  line-height: 1;
  opacity: .85;
  box-shadow: none;
}

.post .btn-icon .badge{
  font-size: 1em;           /* keep readable, but not emphasized */
  opacity: .85;
}

.post .btn-icon:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.82);
  transform: none;
}

.post .btn-icon:active{
  transform: none;
}

/* Tone down the shooting star visual treatment */
.rate-shooting{
  text-shadow: none;
}


/* === Floating post glow: reduce intensity === */
.post{
  box-shadow: 0 0 10px rgba(168,85,247,.16), 0 0 22px rgba(168,85,247,.08) !important;
}


/* === Mobile: ensure composer height fits send arrow === */
@media (max-width: 520px){
  #postForm{
    padding: 12px;
    column-gap: 10px;
    row-gap: 10px;
  }
  #postForm textarea{
    min-height: 32px;
    height: 32px;
  }
}

@media (max-width: 380px){
  #postForm{
    padding: 11px;
    column-gap: 8px;
    row-gap: 8px;
  }
  .composer-secondary-btn{
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 12px;
  }
  #addImageToggle,
  #submitBtn{
    min-height: 42px;
    height: 42px;
  }
  #postForm #count{
    font-size: 11px;
  }
}


/* === Remove thin borders: composer + floating posts === */
#postForm{
  border: 0 !important;
}

.post{
  border: 0 !important;
}


/* === Sound toggle: reduce size by 50% === */
#soundToggleDock .sound-toggle{
  transform: scale(0.75);
  transform-origin: top left;
}


/* === Floating post actions: even more subtle === */
.post .btn-icon{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: rgba(255,255,255,.55) !important;
  opacity: .65 !important;
  box-shadow: none !important;
  transition: opacity .15s ease, color .15s ease;
}

.post .btn-icon .badge{
  opacity: .6 !important;
}

.post .btn-icon:hover{
  background: transparent !important;
  opacity: .85 !important;
  color: rgba(255,255,255,.75) !important;
}

.post .btn-icon:active{
  opacity: .9 !important;
}



/* === Override floating.js injected styles for Share + Shooting Star ===
   floating.js injects styles for .post-share and .btn-star at runtime.
   These rules use !important so styles.css remains dominant.
*/
.post .post-share,
.post .btn-star{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  padding: 0 !important;
  min-height: auto !important;

  color: rgba(255,255,255,.55) !important;
  font: 400 11px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  letter-spacing: .2px;
  opacity: .65 !important;
}

.post .post-share:hover,
.post .btn-star:hover{
  background: transparent !important;
  transform: none !important;
  opacity: .82 !important;
  color: rgba(255,255,255,.72) !important;
}

.post .post-share:active,
.post .btn-star:active{
  transform: none !important;
  opacity: .9 !important;
}

/* Star internals */
.post .btn-star .ic{
  filter: none !important;          /* remove glow */
  opacity: .75 !important;
}
.post .btn-star .count{
  font-weight: 500 !important;
  opacity: .8 !important;
}


/* === Floating post date: slightly smaller === */
.post .date,
.post time,
.post .post-date{
  font-size: 10px !important;
  opacity: .65;
}


/* === Post meta: date color + separators === */
/* Make date match Share/Star color */
.post .date,
.post time,
.post .post-date{
  color: rgba(255,255,255,.55) !important;
  opacity: .65 !important;
}

/* Tighter spacing so separators read cleanly */
.post .actions{
  gap: .15rem !important;
}


/* Reply UI */
.post .meta {
  margin-top: 8px;
}

.post .post-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  pointer-events: auto;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}

.post .post-actions > * {
  flex: 0 0 auto;
  min-width: 0;
}

.post .post-actions > * + *::before {
  content: "·";
  display: inline-block;
  margin: 0 6px;
  color: rgba(255,255,255,.45);
}

.post .post-inline-btn,
.post .post-actions .btn-icon,
.post .post-date-inline {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  padding: 0;
  border-radius: 0;
  font-size: 10px;
  line-height: 1.2;
  box-shadow: none;
  min-height: 0;
}

.post .post-inline-btn,
.post .post-actions .btn-icon {
  cursor: pointer;
}

.post .post-inline-btn:hover,
.post .post-actions .btn-icon:hover {
  background: transparent;
  transform: none;
  color: var(--fg);
}

.post .post-actions .btn-icon .count {
  font-weight: 500;
}

.post .post-date-inline {
  color: rgba(255,255,255,.58);
}

.post .post-reply-btn[hidden],
.post .post-reply-count[hidden],
.post .post-date-inline[hidden] {
  display: none;
}

.reply-body::before {
  content:none;
}

.reply-body .reply-shell {
  position: relative;
  z-index: 2;
}

.reply-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 96px;
}

.reply-shell {
  display: grid;
  gap: 18px;
}

.reply-card {
  background: linear-gradient(180deg, rgba(23,12,34,.82), rgba(20,10,31,.72));
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reply-card h2 {
  margin: 0 0 10px;
}

.reply-card-origin {
  padding: 22px 22px 20px;
}

.reply-card-origin .reply-origin-text {
  font-size: 1.22rem;
  line-height: 1.65;
}

.reply-card-origin .reply-note {
  margin-top: 10px;
}

.reply-card-compose {
  background: linear-gradient(180deg, rgba(34,16,58,.88), rgba(27,12,46,.78));
  border-color: rgba(192,132,252,.18);
}

.reply-card-compose .reply-textarea {
  background: linear-gradient(180deg, rgba(27,11,46,.92), rgba(23,9,40,.84));
}

.reply-top-actions,
.reply-bottom-actions {
  display: flex;
}

.reply-top-actions {
  justify-content: flex-start;
}

.reply-bottom-actions {
  justify-content: flex-start;
  padding-bottom: env(safe-area-inset-bottom);
}

.reply-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(23,12,34,.85), rgba(20,10,31,.75));
  border: 1px solid rgba(255,255,255,.14);
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
}

.reply-back-btn:hover {
  background: rgba(26,14,43,0.92);
}

.reply-origin-text,
.reply-item-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.reply-textarea {
  min-height: 240px;
}

.reply-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.reply-list {
  display: grid;
  gap: 12px;
}

.reply-item {
  background: linear-gradient(180deg, rgba(23,12,34,.76), rgba(20,10,31,.62));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 14px;
}

.reply-item-meta,
.reply-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .reply-page {
    padding: 18px 14px 72px;
  }

  .reply-card {
    padding: 16px;
    border-radius: 16px;
  }

  .reply-card-origin {
    padding: 18px;
  }

  .reply-card-origin .reply-origin-text {
    font-size: 1.1rem;
    line-height: 1.55;
  }
}


.reply-body .reply-page,
.reply-body .reply-shell,
.reply-body .reply-card,
.reply-body .reply-top-actions,
.reply-body .reply-bottom-actions {
  position: relative;
  z-index: 2;
}



/* image upload + image posts */
.composer-media{
  grid-area: media;
  position: static;
  transform: none;
  margin-top: 0;
  z-index: 2;
  min-width: 0;
}
.composer-secondary-btn{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--fg);
  padding: 9px 12px;
  border-radius: 12px;
  box-shadow: none;
}
.composer-secondary-btn:hover{ background: rgba(255,255,255,.12); box-shadow:none; }
#addImageToggle{
  min-height: 44px;
}
.image-upload-panel{
  grid-area: imagepanel;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}
.image-upload-note{ color:var(--muted); font-size:12px; margin-bottom:8px; }
.image-upload-actions,.image-preview-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.image-upload-error{ min-height:18px; margin-top:0; margin-bottom:8px; color:#ffb4b4; font-size:12px; }
.image-preview-wrap{ margin-top:0; }

.reply-card-compose .image-upload-panel{
  max-width: 100%;
  margin: 10px 0 14px;
}

.image-preview-card{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(23,12,34,.85), rgba(20,10,31,.75));
}
.image-preview-text{ margin-bottom:10px; white-space:pre-wrap; word-break:break-word; }
.post-image,
.post-image-preview{
  display:block;
  margin:0 auto;
  width:150px;
  height:150px;
  object-fit:contain;
  border-radius:14px;
}
.post-image-button{
  display:block;
  margin:10px auto 0;
  padding:0;
  background:none;
  border:0;
  box-shadow:none;
  pointer-events:auto;
}
.post-image-button:hover{ background:none; box-shadow:none; transform:none; }
.reply-origin-image,
.reply-item-image,
.reply-preview-image{
  display:block;
  margin-left:auto;
  margin-right:auto;
  width:100%;
  max-width:500px;
  max-height:500px;
  object-fit:contain;
  border-radius:16px;
}
.reply-origin-image-wrap,
.reply-item-image-wrap,
.reply-preview-image-wrap{ margin-top:12px; text-align:center; }
.reply-preview-image{ margin:0 auto; }
.reply-composer-media{ margin:12px 0 0; }
