/* Shared styling for the Rooms surfaces (groups.html, group.html,
   thread.html) -- the edge-to-edge room topbar + kebab menu, the post card,
   the generic centered modal shell (composer / filter / search all reuse
   it), the filter row + chips, and the reply/comment styling used on the
   thread page. Loaded alongside each page's own small stylesheet. */

/* ---------- Room topbar (groups.html/group.html/thread.html) ----------
   Edge-to-edge, deliberately its own class rather than .site-header --
   body:has(#left-sidebar) .site-header is hidden entirely on desktop
   (redundant with the sidebar there), but the room name/search/kebab here
   are the room's own identity, not account chrome, so they must stay
   visible on desktop too.

   #account-area rides along as a sibling inside .room-topbar-row rather
   than inside .room-topbar itself, because group.js/thread.js overwrite
   #room-topbar/#thread-topbar's innerHTML wholesale on every render --
   nesting account-area in there would get it wiped. It's still needed on
   these pages so auth.js's renderAccountArea() (which no-ops without it)
   keeps mounting the left-sidebar/bottom-tab-bar and the sign-in link. */
.room-topbar-row {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  background: var(--paper);
}
.room-topbar-row #account-area { flex-shrink: 0; padding-right: 16px; }
.room-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 34px;
  box-sizing: border-box;
  padding: 16px 16px;
}
.room-topbar-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
}
.room-topbar-back:hover { background: var(--paper-dim); }
.room-topbar-back svg { width: 23px; height: 23px; display: block; }
/* Title is centered on the bar itself (not just the leftover flex space),
   so it reads centered whether or not a back button is present on the
   left -- taken out of flow so the left/right clusters can be asymmetric
   without pulling the title off-center. */
.room-topbar-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 170px);
  font-family: var(--body);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  pointer-events: none;
}
.room-topbar-title-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.room-topbar-title-link span { overflow: hidden; text-overflow: ellipsis; }
.room-topbar-title-link svg { width: 15px; height: 15px; flex: 0 0 auto; }
.room-topbar-title-link:hover, .room-topbar-title-link:focus-visible {
  color: var(--blue);
  text-decoration-color: currentColor;
  outline: none;
}
.room-topbar-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; margin-left: auto; }
.room-topbar-actions .header-icon-btn { width: 42px; height: 42px; }
.room-topbar-actions .header-icon-btn svg { width: 23px; height: 23px; }

/* Kebab (3-dot) menu -- the room-topbar's notify toggle. */
.room-kebab-wrap { position: relative; }
.room-kebab-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  background: var(--paper);
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(18, 18, 18, 0.35);
  padding: 6px;
  z-index: 90;
  display: flex;
  flex-direction: column;
}
.room-kebab-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.room-kebab-item:hover { background: var(--paper-dim); }

/* ---------- Post card (feed + detail modes) ---------- */
.gpost {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.gpost:first-child { padding-top: 0; }

.gpost-feed {
  cursor: pointer;
  border-radius: 12px;
  padding: 14px;
  margin: 0 0 4px;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.12s ease;
}
.gpost-feed:hover { background: var(--paper-dim); }
.gpost-feed:focus-visible { outline: 2px solid var(--ink-soft); outline-offset: 2px; }

/* Body row: a single full-width text column, or (feed cards with a photo)
   a 2-column grid with the first photo on the left per the mockup -- the
   thumbnail spans the full height of the header+title+body stack next to it. */
.gpost-body-row { display: flex; flex-direction: column; }
.gpost-body-row-photo {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: stretch;
}

.gpost-thumb-col { position: relative; border-radius: 10px; overflow: hidden; background: var(--paper-dim); }
.gpost-thumb { width: 100%; height: 100%; min-height: 100px; object-fit: cover; display: block; }
.gpost-thumb.is-processing, .gpost-photo-cell.is-processing img { filter: blur(9px); transform: scale(1.04); }
.gpost-photo-processing, .room-photo-processing {
  position: absolute;
  left: 5px;
  bottom: 5px;
  z-index: 2;
  max-width: calc(100% - 10px);
  box-sizing: border-box;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.78);
  color: #fff;
  font-family: var(--body);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
}
.gpost-thumb-count {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(18, 18, 18, 0.7);
  color: #fff;
  font-family: var(--body);
  font-weight: 800;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
}

.gpost-text-col { min-width: 0; }

/* Meta row: poster's username left, last-activity age (+ delete kebab) right. */
.gpost-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
}
.gpost-meta-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gpost-username { font-family: var(--body); font-weight: 700; font-size: 12.5px; color: var(--ink-soft); }
.gpost-date { font-family: var(--body); font-weight: 600; font-size: 12px; color: var(--ink-soft); }

.gpost-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.gpost-tag {
  padding: 5px 9px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper-dim);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}
.gpost-market-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 9px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--hairline);
  color: var(--ink);
  font-family: var(--body);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}
.gpost-market-status.is-for_sale { background: #28c76f; color: #171717; }
.gpost-market-status.is-pending { background: var(--yellow); color: #171717; }
.gpost-market-status.is-sold { background: #ff4037; color: #fff; }
.gpost-market-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: #171717;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.gpost-market-link:hover { filter: brightness(0.96); }

.gpost-menu-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.gpost-menu-btn:hover { background: var(--paper); color: var(--ink); }
.gpost-menu-btn svg { width: 17px; height: 17px; }

/* Post card's own kebab (Edit/Delete) reuses the room-topbar's kebab
   dropdown markup/JS, scaled down to sit inline in the meta row. */
.gpost-menu-wrap .header-icon-btn { width: 26px; height: 26px; color: var(--ink-soft); }
.gpost-menu-wrap .header-icon-btn:hover { background: var(--paper); color: var(--ink); }
.gpost-menu-wrap .header-icon-btn svg { width: 17px; height: 17px; }

.gpost-title {
  font-family: var(--body);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.2px;
  margin: 8px 0 0;
  text-wrap: balance;
}
.gpost-detail .gpost-title { font-size: 24px; margin-top: 10px; }

.gpost-body {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 4px 0 0;
}
.gpost-detail .gpost-body { font-size: 15px; }
.gpost-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.gpost-rich-heading { font-size: 1.35em; line-height: 1.3; font-weight: 800; }
.gpost-body-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.gpost-photos {
  margin: 10px 0 0;
  display: grid;
  gap: 4px;
  border-radius: 12px;
  overflow: hidden;
}
.gpost-photos.count-1 { grid-template-columns: 1fr; }
.gpost-photos.count-2 { grid-template-columns: 1fr 1fr; }
.gpost-photos.count-3, .gpost-photos.count-4 { grid-template-columns: 1fr 1fr; }
.gpost-photos.count-5, .gpost-photos.count-6 { grid-template-columns: 1fr 1fr 1fr; }
.gpost-photo-cell { position: relative; overflow: hidden; background: var(--paper-dim); }
.gpost-photos img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  background: var(--paper-dim);
}
.gpost-photos.count-1 img { aspect-ratio: 4 / 3; }

.gpost-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.gpost-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gpost-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.gpost-like-btn:hover { background: var(--paper); color: var(--ink); }
.gpost-action-btn.is-active { color: var(--red); }
.gpost-action-btn svg { width: 17px; height: 17px; display: block; }
.gpost-comment-count-display { cursor: default; }

/* ---------- FAB (yellow pencil, opens the composer modal) ---------- */
.room-fab {
  position: fixed;
  right: 20px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--yellow);
  color: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(18, 18, 18, 0.5);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.room-fab:hover { transform: translateY(-2px); }
.room-fab svg { width: 24px; height: 24px; }
@media (max-width: 700px) {
  .room-fab { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ---------- Filter row + active-filter chips ---------- */
.room-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.room-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--paper-dim);
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.room-filter-btn:hover { background: var(--paper); }
.room-filter-btn svg { width: 14px; height: 14px; }

.room-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; }
.room-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 6px 5px 12px;
}
.room-chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  padding: 0;
}
.room-chip-remove svg { width: 8px; height: 8px; }

/* ---------- Generic centered modal shell (composer / filter / search) ---------- */
.room-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 18, 18, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.room-modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.room-modal {
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  max-height: 85dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--paper-dim);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 20px 50px -12px rgba(18, 18, 18, 0.5);
  transform: scale(0.96) translateY(6px);
  transition: transform 0.18s ease;
}
.room-modal--lg { max-width: 480px; }
.room-modal-backdrop.is-open .room-modal { transform: scale(1) translateY(0); }

.room-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.room-modal-title { font-family: var(--body); font-weight: 800; font-size: 15px; color: var(--ink); }
.room-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}
.room-modal-close svg { width: 14px; height: 14px; display: block; }
.room-modal-close:hover { background: var(--paper-dim); }
.room-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.room-modal-footer { flex-shrink: 0; display: flex; gap: 10px; margin-top: 14px; }

/* Clean, flat social-style footer buttons -- replaces the old .pill/dark
   "blocky shadow" comic-panel look for the composer/filter modal footers. */
.room-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.room-btn-ghost { background: transparent; color: var(--ink-soft); }
.room-btn-ghost:hover { background: var(--paper); color: var(--ink); }
.room-btn-solid { background: var(--ink); color: var(--paper); }
.room-btn-solid:hover { opacity: 0.88; }
.room-btn-solid:disabled { opacity: 0.35; cursor: default; }

.room-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--body);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ink-soft);
  position: relative;
}
.room-input, .room-select, .room-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  text-transform: none;
  background: var(--paper);
  color: var(--ink);
}
.room-input:focus, .room-select:focus, .room-textarea:focus { outline: none; border-color: var(--ink-soft); }
.room-textarea { resize: vertical; min-height: 70px; }

.room-photo-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.room-photo-thumb { position: relative; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--hairline); }
.room-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-photo-thumb.is-processing img { filter: blur(7px); transform: scale(1.08); }
.room-photo-processing { left: 3px; bottom: 3px; max-width: calc(100% - 6px); padding: 2px 4px; font-size: 7px; }
.room-photo-remove {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(18, 18, 18, 0.75); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.room-photo-remove svg { width: 10px; height: 10px; }
.room-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1.5px solid var(--hairline);
  color: var(--ink-soft);
  font-family: var(--body);
  font-weight: 700;
  text-transform: none;
  font-size: 12.5px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
.room-photo-btn:hover { color: var(--ink); }
.room-photo-btn svg { width: 16px; height: 16px; }

.room-status { font-family: var(--body); font-weight: 600; font-size: 12px; color: var(--ink-soft); text-transform: none; }

/* Autocomplete dropdown -- same look as search.css's .search-suggestions-*,
   duplicated under room-specific names since group.html/thread.html don't
   load search.css. Positioned with `position: fixed` and sized/placed by JS
   (wireSeriesAutocomplete) rather than statically here, since it needs to
   dodge the on-screen keyboard -- see the top/left/width/max-height it sets
   inline whenever it's shown. */
.room-autocomplete-dropdown {
  position: fixed;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(18, 18, 18, 0.35);
  padding: 5px;
  z-index: 300;
  overflow-y: auto;
}
.room-autocomplete-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.room-autocomplete-row:hover { background: var(--paper-dim); }
.room-autocomplete-title { font-family: var(--body); font-weight: 700; font-size: 13.5px; color: var(--ink); text-transform: none; }
.room-autocomplete-sub { font-family: var(--body); font-weight: 600; font-size: 11.5px; color: var(--ink-soft); flex-shrink: 0; }

/* Single-select option list, used inside the filter modal for Era/Publisher --
   wrapped, same-line tag/pill buttons, not a one-per-row vertical list. */
.room-option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.room-option-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border: 1.5px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  text-transform: none;
  font-size: 11.5px;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.room-option-row.is-selected { border-color: var(--yellow); background: var(--yellow); color: #121212; }
.room-option-row.is-selected::after { content: " ✓"; }

/* ---------- Search dialog ---------- */
.room-scope-row { display: flex; gap: 8px; }
.room-scope-btn {
  flex: 1;
  font-family: var(--body);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 8px;
  cursor: pointer;
  text-align: center;
}
.room-scope-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.room-search-results { display: flex; flex-direction: column; gap: 2px; }
.room-search-result-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 9px 8px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.room-search-result-row:hover { background: var(--paper); }
.room-search-result-top { display: flex; align-items: center; gap: 6px; }
.room-search-result-type {
  flex-shrink: 0;
  font-family: var(--body);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.3px;
  color: var(--ink-soft);
  background: var(--paper-dim);
  border-radius: 999px;
  padding: 2px 7px;
}
.room-search-result-title { font-family: var(--body); font-weight: 800; font-size: 13.5px; color: var(--ink); }
.room-search-result-snippet {
  font-family: var(--body);
  font-size: 12.5px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-search-result-room { font-family: var(--body); font-weight: 700; font-size: 11px; color: var(--ink-soft); }

/* ---------- Replies (thread page) ----------
   Flat list, not a chat-bubble stack -- name/timestamp, plain body text,
   then a like/reply action row, with nested replies connected to their
   parent by a left rule rather than indent alone. Composer sits after the
   list (not above it), styled as a plain bottom bar with no avatar. */
.gcomments-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 4px;
}
.gcomments-heading h2 { font-family: var(--display); text-transform: uppercase; font-size: 16px; margin: 0; }
.gcomments-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  text-transform: none;
}
.gcomments-sort-btn:hover { color: var(--ink); }
.gcomments-sort-chevron { width: 12px; height: 12px; }

.gcomment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.gcomment:first-child { padding-top: 10px; }
/* The composer already supplies the divider that closes a thread. Leaving
   the final reply's own rule in place creates two nearly adjacent lines. */
#thread-comments > .gcomment:last-child { border-bottom: none; }
.gcomment-reply {
  border-bottom: none;
  margin-left: 20px;
  padding: 12px 0 0 14px;
  border-left: 1.5px solid var(--hairline);
}
.gcomment-reply + .gcomment-reply { padding-top: 12px; }
.gcomment-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--paper); }
.gcomment-avatar-fallback {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1.5px solid var(--hairline); color: var(--ink-soft);
  font-family: var(--body); font-weight: 800; font-size: 13px;
}
.gcomment-main { flex: 1 1 auto; min-width: 0; }
.gcomment-nameline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gcomment-name { font-family: var(--body); font-weight: 800; font-size: 13.5px; color: var(--ink); }
.gcomment-date { font-family: var(--body); font-size: 11.5px; color: var(--ink-soft); }
.gcomment-text { font-family: var(--body); font-size: 14px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; word-break: break-word; margin: 4px 0 0; }
.gcomment-photos { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.gcomment-photos img {
  width: 70px; height: 70px; border-radius: 8px; object-fit: cover;
  cursor: zoom-in; display: block; background: var(--paper);
}
.gcomment-actions { display: flex; gap: 16px; margin-top: 6px; }
.gcomment-like-btn, .gcomment-reply-btn, .gcomment-edit-btn, .gcomment-delete-btn {
  background: none; border: none; color: var(--ink-soft); cursor: pointer;
  font-family: var(--body); font-size: 12px; font-weight: 700; padding: 0;
}
.gcomment-reply-btn:hover { color: var(--ink); }
.gcomment-like-btn:hover, .gcomment-like-btn.is-liked, .gcomment-edit-btn:hover { color: var(--ink); }
.gcomment-delete-btn:hover { color: var(--red); }
.gcomment-empty { font-family: var(--body); font-size: 12.5px; color: var(--ink-soft); padding: 14px 0; }

.gcomment-reply-target {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  font-family: var(--body); font-size: 12px; color: var(--ink-soft);
}
.gcomment-reply-target strong { color: var(--ink); font-weight: 800; }
.gcomment-reply-target-cancel {
  background: none; border: none; color: var(--ink-soft); cursor: pointer;
  padding: 2px; display: inline-flex; align-items: center; justify-content: center;
}
.gcomment-reply-target-cancel:hover { color: var(--ink); }
.gcomment-reply-target-cancel svg { width: 11px; height: 11px; }

.gcomment-composer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.gcomment-composer-main { min-width: 0; }
.gcomment-format-toolbar { display: flex; align-items: center; gap: 4px; margin: 0 0 8px; overflow-x: auto; scrollbar-width: none; }
.gcomment-format-toolbar::-webkit-scrollbar { display: none; }
.gcomment-format-btn, .gcomment-emoji-btn {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 30px; height: 30px; padding: 0;
  border: 1px solid var(--hairline); border-radius: 7px;
  background: var(--paper); color: var(--ink-soft); cursor: pointer;
  font-family: var(--body); font-size: 13px;
}
.gcomment-format-btn:hover, .gcomment-emoji-btn:hover { background: var(--paper-dim); color: var(--ink); }
.gcomment-format-btn em { font-family: Georgia, serif; font-size: 15px; }
.gcomment-emoji-btn { font-size: 16px; }
.gcomment-format-divider { width: 1px; height: 20px; margin: 0 3px; background: var(--hairline); flex: 0 0 auto; }
.gcomment-composer-row { display: flex; align-items: flex-end; gap: 8px; }
.gcomment-input-wrap { position: relative; flex: 1; min-width: 0; }
.gcomment-input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  min-height: 88px;
  max-height: 180px;
  width: 100%;
  padding: 10px 42px 10px 16px;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
  scrollbar-color: var(--ink-soft) transparent;
  background: var(--paper);
  color: var(--ink);
}
.gcomment-edit-cancel {
  position: absolute; top: 9px; right: 9px; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--paper-dim); color: var(--ink-soft);
  cursor: pointer;
}
.gcomment-edit-cancel:hover { color: var(--ink); }
.gcomment-edit-cancel svg { width: 14px; height: 14px; }
.gcomment-input:focus { outline: none; border-color: var(--ink-soft); }
.gcomment-input::-webkit-scrollbar { width: 9px; }
.gcomment-input::-webkit-scrollbar-track { background: transparent; }
.gcomment-input::-webkit-scrollbar-thumb { background: var(--ink-soft); border: 2px solid var(--paper); border-radius: 999px; }
.gcomment-input::-webkit-scrollbar-thumb:hover { background: var(--ink); }
.gcomment-photo-btn, .gcomment-submit-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--hairline);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}
.gcomment-photo-btn:hover, .gcomment-submit-btn:hover { background: var(--paper-dim); color: var(--ink); }
.gcomment-photo-btn svg, .gcomment-submit-btn svg { width: 16px; height: 16px; }
.gcomment-photo-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gcomment-photo-thumb { position: relative; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--hairline); }
.gcomment-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcomment-photo-remove {
  position: absolute; top: 1px; right: 1px; width: 15px; height: 15px; border-radius: 50%;
  background: rgba(18, 18, 18, 0.75); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.gcomment-photo-remove svg { width: 8px; height: 8px; }
.gcomment-text strong { font-weight: 800; }
.gcomment-text em { font-style: italic; }
.gcomment-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.gcomment-heading { display: block; margin: 8px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1.16; font-weight: 700; letter-spacing: -0.25px; }
.gcomment-list-item { display: inline-flex; gap: 7px; }
.gcomment-list-bullet { color: var(--ink-soft); }

.load-more-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  font-family: var(--body);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12.5px;
  background: var(--paper-dim);
  border: 1.5px solid var(--hairline);
  color: var(--ink);
  padding: 12px;
  border-radius: 999px;
  cursor: pointer;
}
.load-more-btn:hover { background: var(--paper); }
