/* GoldieCircle Chatroom (docs/CHATROOM_PLAN_2026-07.md)
   Senior-first: 18px+ text, 48px+ tap targets, high contrast, warm cream/gold. */

.gcchat-app { max-width: 1000px; margin: 0 auto; font-size: 18px; }
/* One chat surface at a time: the floating Ask-Goldie widget hides while the
   chatroom section is visible (body class toggled by gc-chatroom.js). */
body.gcchat-in-chatrooms #gc-floating-goldie,
body.gcchat-in-chatrooms #gc-float-chat { display: none !important; }
/* Page background: WHITE on the entrance (room list); once INSIDE a room the
   page takes that room's themed backdrop (game-room treatment — faint drawn
   motifs per topic: butterflies+dove for grief, paddle+mat for health, etc). */
body.gcchat-in-chatrooms { background: #fff !important; }
body.gcchat-in-chatrooms[data-gcchat-room="general"]    { background: #FFF9F0 url('../images/chatroom/lounge-bg.svg') center top / cover fixed !important; }
body.gcchat-in-chatrooms[data-gcchat-room="health"]     { background: #F4FAF4 url('../images/chatroom/health-bg.svg') center top / cover fixed !important; }
body.gcchat-in-chatrooms[data-gcchat-room="caregivers"] { background: #FDF6EF url('../images/chatroom/caregivers-bg.svg') center top / cover fixed !important; }
body.gcchat-in-chatrooms[data-gcchat-room="tech"]       { background: #F3F8FC url('../images/chatroom/tech-bg.svg') center top / cover fixed !important; }
body.gcchat-in-chatrooms[data-gcchat-room="hobbies"]    { background: #FDF4F5 url('../images/chatroom/hobbies-bg.svg') center top / cover fixed !important; }
body.gcchat-in-chatrooms[data-gcchat-room="grief"]      { background: #F8F6FC url('../images/chatroom/grief-bg.svg') center top / cover fixed !important; }
body.gcchat-in-chatrooms[data-gcchat-room="private"]    { background: #FFF9F0 url('../images/chatroom/chatroom-bg.svg') center top / cover fixed !important; }
/* room accent exposed at body level (side panel lives outside the roomview) */
body[data-gcchat-room="general"]    { --gcab: #b8860b; }
body[data-gcchat-room="health"]     { --gcab: #3f8f5f; }
body[data-gcchat-room="caregivers"] { --gcab: #c26b3f; }
body[data-gcchat-room="tech"]       { --gcab: #3f6fa0; }
body[data-gcchat-room="hobbies"]    { --gcab: #b04a5a; }
body[data-gcchat-room="grief"]      { --gcab: #7c6fae; }
body[data-gcchat-room="private"]    { --gcab: #9a6b00; }

/* LEFT gutter belongs to the members panel — ads keep the right side only */
body.gcchat-in-chatrooms .gc-sad-left { display: none !important; }
.gcchat-sidepanel {
  position: fixed; top: 150px; left: 16px;
  width: clamp(180px, calc((100vw - 1040px) / 2 - 40px), 300px);
  max-height: 62vh; overflow-y: auto;
  background: rgba(255,255,255,.96); border: 2px solid #f0e2c8; border-top: 4px solid var(--gcab, #b8860b);
  border-radius: 16px; padding: 14px 18px; z-index: 41;
  box-shadow: 0 8px 26px rgba(120,90,20,.14); cursor: pointer; font-size: 16.5px;
}
.gcchat-sidepanel h4 { margin: 0 0 8px; font-size: 17px; color: var(--gcab, #9a6b00); letter-spacing: .3px; }
/* big, friendly "N people here" headline — the liveliness cue seniors care about */
.gcchat-side-count { font-size: 18px; font-weight: 800; color: #3d2f18; margin: 0 0 10px; }
.gcchat-side-count.gcchat-side-empty { font-size: 16px; font-weight: 500; color: #a09070; }
.gcchat-sidepanel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.gcchat-sidepanel li { color: #4a3a1e; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcchat-sidepanel li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7fd35e; margin-right: 9px; vertical-align: 1px; }
/* "See everyone (N)" — clear tappable link into the full scrollable list */
.gcchat-side-all { margin-top: 10px; background: none; border: none; padding: 4px 0; color: var(--gcab, #9a6b00); font-weight: 800; font-size: 15.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-family: inherit; }
.gcchat-side-all:hover { color: #b8860b; }
.gcchat-side-visitors { color: #a09070; font-size: 14px; margin: 10px 0 0; }
/* full member popup: scroll the list rather than growing a giant modal at 50 people */
.gcchat-people-scroll { max-height: 56vh; overflow-y: auto; }
@media (max-width: 1460px) { .gcchat-sidepanel { display: none; } } /* no gutter, no panel — 👥 button still there */

/* bold accent outline OFF / solid accent ON — the pale chips were invisible */
.gcchat-chime-btn { background: #fff; border: 2px solid var(--gca, #9a6b00); color: var(--gca, #9a6b00); border-radius: 999px; padding: 8px 12px; font-size: 17px; font-weight: 800; cursor: pointer; min-height: 46px; min-width: 48px; box-shadow: 0 2px 6px rgba(120,90,20,.12); }
.gcchat-chime-btn.on { background: var(--gca, #F5A623); border-color: var(--gca, #F5A623); color: #fff; }
.gc-badge-new { position: absolute; top: 10px; right: 10px; background: #F5A623; color: #4a3200; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.gcchat-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gcchat-head { text-align: center; margin-bottom: 18px; }
.gcchat-tagline { color: #6b5b45; font-size: 19px; margin: 6px 0 0; }
.gcchat-status { text-align: center; background: #fff3d6; color: #7a5b16; border-radius: 10px; padding: 8px 14px; margin: 8px auto; max-width: 420px; font-size: 16px; }

/* ---- hero: a centered WELCOME greeting (deliberately different shape from the
   left-aligned room cards, so mobile users don't mistake it for a room) ---- */
.gcchat-hero { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(120,90,20,.18); margin-bottom: 22px; }
.gcchat-hero img { display: block; width: 100%; height: auto; }
.gcchat-hero-shade { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 48px 20px 18px; background: linear-gradient(to top, rgba(40,28,8,.8), rgba(40,28,8,.35) 55%, rgba(40,28,8,0)); }
.gcchat-hero-title { margin: 0; color: #fff; font-size: 27px; font-weight: 800; letter-spacing: .3px; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.gcchat-hero-tagline { margin: 0; color: rgba(255,250,240,.96); font-size: 17.5px; font-weight: 500; max-width: 560px; line-height: 1.4; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.gcchat-hero-live { margin-top: 4px; background: rgba(255,255,255,.93); color: #2e5a2e; font-size: 14.5px; font-weight: 700; border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
.gcchat-hero-live::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #57b33a; margin-right: 7px; vertical-align: 0; }

/* ---- room list: name + description live ON the photo over a bottom shade ---- */
.gcchat-roomgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 18px 0 8px; }
.gcchat-roomcard { position: relative; display: block; aspect-ratio: 16 / 10; text-align: left; background: #3d2f18; border: 2px solid #f0e2c8; border-radius: 18px; padding: 0; overflow: hidden; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; font-family: inherit; }
.gcchat-roomcard:hover, .gcchat-roomcard:focus { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(150,110,30,.22); border-color: #F5A623; }
.gcchat-room-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gcchat-roomcard:hover .gcchat-room-photo { transform: scale(1.045); }
.gcchat-room-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,19,5,.86) 0%, rgba(28,19,5,.44) 40%, rgba(28,19,5,.06) 66%, rgba(28,19,5,0) 80%); }
.gcchat-room-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 3px; padding: 14px 18px 15px; }
.gcchat-room-name { font-size: 21px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.45); letter-spacing: .2px; }
.gcchat-room-blurb { font-size: 15px; color: rgba(255,255,255,.94); text-shadow: 0 1px 3px rgba(0,0,0,.5); line-height: 1.35; }
.gcchat-room-count { font-size: 14px; color: rgba(255,236,200,.85); font-weight: 600; margin-top: 3px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.gcchat-room-count.gcchat-live { color: #cdeab8; font-weight: 700; }
.gcchat-room-count.gcchat-live::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #7fd35e; margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 6px rgba(127,211,94,.8); }
.gcchat-tag-premium { display: inline-block; background: #F5A623; color: #3a2800; border: 1px solid #ffcf70; font-size: 13.5px; font-weight: 800; padding: 3px 12px; border-radius: 999px; vertical-align: middle; box-shadow: 0 2px 8px rgba(0,0,0,.35); letter-spacing: .2px; white-space: nowrap; }
.gcchat-rules-link-row { text-align: center; margin: 14px 0; }
.gcchat-rules-link { color: #9a6b00; font-weight: 600; text-decoration: underline; font-size: 16px; }

/* ---- room view ----
   Per-room THEME: each room carries its topic accent + its own photo as a
   faint backdrop wash (the game-room treatment). Music hooks come later. */
.gcchat-roomview { --gca: #b8860b; --gcbg: #FFF9F0; --gcphoto: none; position: relative; background: var(--gcbg); border: 2px solid #f0e2c8; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; height: 82vh; min-height: 560px; }
.gcchat-roomview::before { content: ''; position: absolute; inset: 0; background-image: var(--gcphoto); background-size: cover; background-position: center; opacity: .1; pointer-events: none; }
.gcchat-roomview > * { position: relative; }
.gcchat-th-general    { --gca: #b8860b; --gcbg: #fffaf0; --gcphoto: url('../images/chatroom/lounge.jpg'); }
.gcchat-th-health     { --gca: #3f8f5f; --gcbg: #f3faf4; --gcphoto: url('../images/chatroom/health_wellness.jpg'); }
.gcchat-th-caregivers { --gca: #c26b3f; --gcbg: #fdf6ef; --gcphoto: url('../images/chatroom/care_giver.jpg'); }
.gcchat-th-tech       { --gca: #3f6fa0; --gcbg: #f2f7fc; --gcphoto: url('../images/chatroom/it_support.jpg'); }
.gcchat-th-hobbies    { --gca: #b04a5a; --gcbg: #fdf3f4; --gcphoto: url('../images/chatroom/hobbies_games.jpg'); }
.gcchat-th-grief      { --gca: #7c6fae; --gcbg: #f7f5fb; --gcphoto: url('../images/chatroom/grief_support.jpg'); }
.gcchat-th-private    { --gca: #9a6b00; --gcbg: #FFF9F0; --gcphoto: url('../images/chatroom/private.jpg'); }
.gcchat-roombar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,.92); border-bottom: 3px solid var(--gca); flex-wrap: wrap; }
/* Prominent SOLID pill in the room's accent color — members kept missing the
   plain-text version and clicking "Back to Community" instead */
.gcchat-back { background: var(--gca, #9a6b00); border: 2px solid var(--gca, #9a6b00); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; padding: 9px 18px; min-height: 46px; border-radius: 999px; box-shadow: 0 3px 8px rgba(60,45,10,.22); font-family: inherit; }
.gcchat-back:hover { filter: brightness(1.12); }
/* nowrap + min-width:0 so a crowded flex row never squeezes the title into a
   vertical one-char-per-line column (CJK breaks between any characters). */
.gcchat-roomtitle { font-size: 22px; font-weight: 800; color: var(--gca, #3d2f18); flex: 1; min-width: 0; text-align: center; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcchat-people-btn, .gcchat-admin-btn, .gcchat-music-btn { background: #fff; border: 2px solid var(--gca, #9a6b00); color: var(--gca, #9a6b00); border-radius: 999px; padding: 8px 14px; font-size: 16px; font-weight: 800; cursor: pointer; min-height: 46px; box-shadow: 0 2px 6px rgba(120,90,20,.12); }
/* the count rides in a solid accent badge — the bare number was hard to see */
.gcchat-people-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 18px; }
.gcchat-people-count { display: inline-block; background: var(--gca, #F5A623); color: #fff; font-weight: 800; font-size: 16px; line-height: 1; border-radius: 999px; padding: 5px 11px; min-width: 30px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.gcchat-music-btn.on { background: var(--gca, #F5A623); border-color: var(--gca, #F5A623); color: #fff; font-weight: 700; }
.gcchat-roombar-rules { font-size: 14.5px; }
.gcchat-banner { background: #fffbe8; color: #7a5b16; font-size: 15px; text-align: center; padding: 8px 12px; border-bottom: 1px solid #f0e2c8; }

.gcchat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.gcchat-earlier { align-self: center; background: #fff; border: 1px solid #e8d9b8; border-radius: 999px; padding: 8px 18px; font-size: 15px; color: #8a6d3b; cursor: pointer; min-height: 40px; }
.gcchat-msg { background: #fff; border: 1px solid #eee0c5; border-radius: 14px 14px 14px 4px; padding: 10px 14px; max-width: 85%; align-self: flex-start; box-shadow: 0 1px 3px rgba(120,90,20,.06); }
.gcchat-mine { align-self: flex-end; background: #fdf3dc; border-radius: 14px 14px 4px 14px; border-right: 3px solid var(--gca, #F5A623); }
.gcchat-msg-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.gcchat-msg-name { font-weight: 700; color: #9a6b00; font-size: 15.5px; }
.gcchat-crown { font-size: 13px; }
.gcchat-msg-time { color: #b3a180; font-size: 13px; }
/* visible chip, not a ghost glyph — seniors kept missing it */
.gcchat-msg-menu { margin-left: auto; background: #f6ecd8; border: 1px solid #e8d9b8; border-radius: 8px; color: #7a5b16; font-size: 20px; font-weight: 700; cursor: pointer; padding: 2px 10px; line-height: 1.2; min-width: 38px; }
.gcchat-msg-menu:hover, .gcchat-msg:hover .gcchat-msg-menu { background: var(--gca, #F5A623); border-color: var(--gca, #F5A623); color: #fff; }
.gcchat-msg-text { font-size: 18px; color: #33281a; line-height: 1.45; word-wrap: break-word; }
.gcchat-removed { color: #a09070; font-style: italic; font-size: 15.5px; }
.gcchat-translation { margin-top: 6px; padding: 8px 12px; background: #fbf6ea; border-left: 3px solid var(--gca, #F5A623); border-radius: 8px; font-size: 16.5px; color: #55432a; font-style: italic; }
.gcchat-sys { text-align: center; color: #a09070; font-size: 14.5px; padding: 2px 0; }
/* warm "someone just arrived — say hello!" welcome line */
.gcchat-sys-join { align-self: center; color: #9a6b00; font-weight: 700; background: #fff6e4; border: 1px solid #f0dfb8; border-radius: 999px; padding: 3px 15px; }
/* optimistic echo: my message shown greyed while moderation runs, then confirmed */
.gcchat-msg.gcchat-pending { opacity: .55; }
.gcchat-msg .gcchat-sending { font-style: italic; }
.gcchat-msg.gcchat-failed { opacity: .9; }
.gcchat-msg.gcchat-failed .gcchat-sending { color: #c0563f; font-weight: 700; font-style: normal; }
/* messages area wrapper — hosts the floating "new messages" pill */
.gcchat-msgs-wrap { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
/* "N new messages ↓" pill (shows only when scrolled up) */
.gcchat-newpill { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 6; background: var(--gca, #F5A623); color: #fff; border: none; border-radius: 999px; padding: 9px 18px; font-size: 15.5px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(120,90,20,.32); font-family: inherit; }
.gcchat-newpill:hover { filter: brightness(1.08); }
/* typing indicator: "X is typing…" with a gentle bouncing-dots animation */
.gcchat-typing { display: flex; align-items: center; gap: 8px; padding: 4px 16px; min-height: 22px; color: #8a6d3b; font-size: 14.5px; font-style: italic; background: #fff; }
.gcchat-typing-dots { display: inline-flex; gap: 3px; }
.gcchat-typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c9a24a; display: inline-block; animation: gcchat-typing-bounce 1.2s infinite ease-in-out; }
.gcchat-typing-dots i:nth-child(2) { animation-delay: .18s; }
.gcchat-typing-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes gcchat-typing-bounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
/* in-room text size toggle + scaling (emoji-only messages stay big) */
.gcchat-textsize-btn { background: #fff; border: 2px solid var(--gca, #9a6b00); color: var(--gca, #9a6b00); border-radius: 999px; font-size: 18px; cursor: pointer; min-width: 48px; min-height: 46px; box-shadow: 0 2px 6px rgba(120,90,20,.12); }
.gcchat-textsize-btn:hover { background: #fbf1dc; }
.gcchat-roomview.gcchat-text-2 .gcchat-msg:not(.gcchat-emoji-msg) .gcchat-msg-text { font-size: 21px; }
.gcchat-roomview.gcchat-text-3 .gcchat-msg:not(.gcchat-emoji-msg) .gcchat-msg-text { font-size: 24px; }

/* guest teaser fade */
.gcchat-guest-fade { position: relative; }
.gcchat-guest-fade::after { content: ''; position: sticky; bottom: 0; display: block; height: 90px; margin-top: -90px; background: linear-gradient(to bottom, rgba(255,249,240,0), #FFF9F0 85%); pointer-events: none; }

/* composer & CTA */
/* Quick-send emoji bar — big, friendly, one-tap "hello/love/applause" into the chat */
.gcchat-quickbar { display: flex; gap: 8px; padding: 9px 12px 0; background: #fff; flex-wrap: wrap; }
.gcchat-quick { font-size: 24px; line-height: 1; background: #fff; border: 2px solid #eaddc0; border-radius: 999px; min-width: 54px; min-height: 46px; cursor: pointer; transition: transform .08s, background .15s, border-color .15s; }
.gcchat-quick:hover { border-color: var(--gca, #F5A623); background: #fff7e9; transform: scale(1.08); }
.gcchat-quick:active { transform: scale(.92); }
/* An emoji-only message shows big and wordless (a wave, a heart, applause) */
.gcchat-msg.gcchat-emoji-msg .gcchat-msg-text { font-size: 46px; line-height: 1.15; }
.gcchat-composer { display: flex; gap: 10px; padding: 12px; background: #fff; border-top: 2px solid #f0e2c8; }
.gcchat-input { flex: 1; min-width: 0; font-size: 18px; padding: 12px 16px; border: 2px solid #e8d9b8; border-radius: 999px; outline: none; min-height: 48px; }
.gcchat-input:focus { border-color: #F5A623; }
.gcchat-send { min-width: 110px; }
/* Voice input (mic) — matches the gold pill language of the composer */
.gcchat-mic { background: #fff; border: 2px solid var(--gca, #9a6b00); color: var(--gca, #9a6b00); border-radius: 999px; font-size: 22px; cursor: pointer; min-width: 52px; min-height: 48px; line-height: 1; box-shadow: 0 2px 6px rgba(120,90,20,.12); }
.gcchat-mic:hover { background: #fbf1dc; }
.gcchat-mic.listening { background: #e6483a; border-color: #e6483a; color: #fff; animation: gcchat-mic-pulse 1.1s ease-in-out infinite; }
@keyframes gcchat-mic-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(230,72,58,.45); } 50% { box-shadow: 0 0 0 8px rgba(230,72,58,0); } }
/* Read-new-messages-aloud toggle — same pill family as Music */
.gcchat-read-btn { background: #fff; border: 2px solid var(--gca, #9a6b00); color: var(--gca, #9a6b00); border-radius: 999px; padding: 8px 14px; font-size: 16px; font-weight: 800; cursor: pointer; min-height: 46px; box-shadow: 0 2px 6px rgba(120,90,20,.12); }
.gcchat-read-btn.on { background: var(--gca, #F5A623); border-color: var(--gca, #F5A623); color: #fff; }
/* On phones + tablets the "Read aloud" label crowds the room title, so show 🔊 only
   (the tooltip still explains it). Full label returns on desktop. */
@media (max-width: 1024px) { .gcchat-read-state { display: none; } }
/* 🌐 show-original toggle on an auto-translated message */
.gcchat-tr-toggle { margin-top: 4px; background: transparent; border: none; color: #a98a4e; font-size: 14px; cursor: pointer; padding: 2px 4px; opacity: .7; }
.gcchat-tr-toggle:hover { opacity: 1; }
.gcchat-msg-text.gcchat-translated { /* subtle cue that this was rendered in the reader's language */ }
.gcchat-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 14px; background: #fff; border-top: 2px solid #f0e2c8; font-size: 17px; color: #6b5b45; text-align: center; }

/* buttons */
.gcchat-btn { display: inline-block; background: #fff; border: 2px solid #e8d9b8; border-radius: 999px; padding: 12px 22px; font-size: 17px; font-weight: 600; color: #5b4a2e; cursor: pointer; text-decoration: none; min-height: 48px; font-family: inherit; }
.gcchat-btn:hover { border-color: #F5A623; }
.gcchat-btn-gold { background: #F5A623; border-color: #F5A623; color: #4a3200; }
.gcchat-btn-gold:hover { background: #ffb63e; }

/* overlay / modal */
/* z-index above the cookie-consent bar (which sat over the rules button); the
   article reader's 2147483647 is the only thing allowed to beat a chat modal */
.gcchat-overlay { position: fixed; inset: 0; background: rgba(40,30,10,.55); z-index: 2147483600; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gcchat-modal { background: #FFF9F0; border-radius: 20px; max-width: 620px; width: 100%; max-height: 78vh; overflow-y: auto; padding: 26px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.35); font-size: 17px; color: #33281a; }
.gcchat-modal h3 { margin: 0 0 10px; font-size: 24px; color: #3d2f18; }
.gcchat-modal-warm { border: 3px solid #F5A623; }
.gcchat-modal-actions { margin-top: 18px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* ---- The Goldie Rules: engraved-tablet treatment (commandments style) ---- */
.gcchat-rules-modal {
  background:
    repeating-linear-gradient(0deg, rgba(150,110,30,.025) 0 2px, transparent 2px 5px),
    linear-gradient(175deg, #fdf6e4 0%, #f7ecd2 55%, #f0e0bc 100%);
  border: 4px double #b8860b;
  border-radius: 72px 72px 20px 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.4), inset 0 0 60px rgba(150,110,30,.12);
  padding: 34px 34px 26px;
  font-family: Georgia, 'Times New Roman', serif;
}
.gcchat-rules-head { text-align: center; margin-bottom: 10px; }
.gcchat-rules-eyebrow { font-size: 13px; letter-spacing: 3.5px; text-transform: uppercase; color: #a2793a; margin-bottom: 6px; }
.gcchat-rules-title { margin: 0 !important; font-size: 32px !important; letter-spacing: 2px; color: #6b4a10 !important; font-weight: 700; font-variant: small-caps; }
.gcchat-rules-ornament { display: flex; align-items: center; gap: 12px; margin: 12px auto 6px; max-width: 340px; }
.gcchat-rules-ornament span { flex: 1; height: 2px; background: linear-gradient(to right, transparent, #b8860b, transparent); }
.gcchat-rules-ornament i { color: #b8860b; font-style: normal; font-size: 13px; }
.gcchat-rules-intro { font-size: 18px; text-align: center; color: #6b4a10; margin: 8px 0 16px; }
.gcchat-rules-list { list-style: none; counter-reset: goldierule; padding: 0 4px; display: flex; flex-direction: column; gap: 13px; }
.gcchat-rules-list li { counter-increment: goldierule; line-height: 1.55; color: #4a3a1e; position: relative; padding-left: 56px; min-height: 40px; }
.gcchat-rules-list li::before {
  content: counter(goldierule, upper-roman);
  position: absolute; left: 0; top: 1px; width: 44px; text-align: center;
  font-size: 19px; font-weight: 700; color: #8a6210;
  border: 2px solid rgba(184,134,11,.55); border-radius: 10px; padding: 3px 0;
  background: rgba(255,250,238,.7);
}
.gcchat-rules-list li strong { color: #5b430e; letter-spacing: .2px; }
.gcchat-rules-care { color: #7a5b16; margin-top: 10px; text-align: center; font-size: 16px; }
.gcchat-safety-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gcchat-safety-list li { background: #fff; border-radius: 12px; padding: 12px 16px; border: 1px solid #f0e2c8; }
.gcchat-people-list { list-style: none; padding: 0; font-size: 18px; display: flex; flex-direction: column; gap: 8px; }
.gcchat-visitors { color: #a09070; font-size: 15px; }
.gcchat-report-quote { color: #6b5b45; font-style: italic; background: #fff; border-radius: 10px; padding: 10px 14px; }
.gcchat-report-reason, .gcchat-block-btn { display: block; width: 100%; margin: 8px 0; text-align: left; }
.gcchat-block-btn { border-color: #d9b8b8; color: #7a3b3b; }

/* admin queue */
.gcchat-qitem { background: #fff; border: 1px solid #f0e2c8; border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.gcchat-qmeta { font-size: 14px; color: #8a6d3b; margin-bottom: 6px; }
.gcchat-qtext { font-size: 16px; margin-bottom: 8px; }
.gcchat-qacts { display: flex; gap: 8px; flex-wrap: wrap; }
.gcchat-qacts .gcchat-btn { padding: 8px 14px; font-size: 14.5px; min-height: 38px; }

/* FAQ */
.gcchat-faq { margin: 26px 0 10px; }
.gcchat-faq h3 { text-align: center; color: #3d2f18; }
.gcchat-faq-item { background: #fff; border: 1px solid #f0e2c8; border-radius: 12px; padding: 4px 16px; margin: 10px 0; }
.gcchat-faq-item summary { font-size: 17.5px; font-weight: 600; color: #5b4a2e; padding: 12px 4px; cursor: pointer; }
.gcchat-faq-item p { color: #55432a; line-height: 1.5; padding: 0 4px 12px; }

/* toasts */
.gcchat-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: all .35s; z-index: 100001; background: #3d2f18; color: #fff; font-size: 16.5px; padding: 13px 22px; border-radius: 999px; max-width: 92vw; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.gcchat-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.gcchat-toast-ok { background: #2e5a2e; }
.gcchat-toast-warn { background: #7a3b16; }

/* ---- Phase 2 ---- */
/* sanctuary chip — first among the private rooms, gold with a star emblem */
.gcchat-myroom-sanct { border: 2px solid #F5A623 !important; background: linear-gradient(120deg, #fff9ec 0%, #fdeecb 60%, #fbe3a8 100%) !important; box-shadow: 0 3px 10px rgba(184,134,11,.2); }
.gcchat-myroom-sanct .gcchat-myroom-name { color: #6b4a10; }
.gcchat-sanct-emblem { color: #b8860b; font-size: 19px; margin-right: 2px; }

/* private-room "Goldie keeps me company" host toggle */
.gcchat-gcompany-btn { background: #fff; border: 2px solid var(--gca, #9a6b00); color: var(--gca, #9a6b00); border-radius: 999px; padding: 8px 14px; font-size: 16px; font-weight: 800; cursor: pointer; min-height: 46px; box-shadow: 0 2px 6px rgba(120,90,20,.12); }
.gcchat-gcompany-btn.on { background: var(--gca, #F5A623); border-color: var(--gca, #F5A623); color: #fff; }

/* private rooms band — family-den art header carries ALL the wording; controls below */
.gcchat-private-band { background: #fff; border: 2px dashed #e8d9b8; border-radius: 16px; padding: 0; margin: 18px 0; overflow: hidden; }
.gcchat-private-imgwrap { position: relative; aspect-ratio: 16 / 6; overflow: hidden; }
.gcchat-private-imgwrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.gcchat-private-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,19,5,.88) 0%, rgba(28,19,5,.42) 45%, rgba(28,19,5,0) 75%); }
.gcchat-private-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px 20px 14px; }
.gcchat-private-title { color: #fff; font-size: 22px; font-weight: 800; text-shadow: 0 1px 5px rgba(0,0,0,.5); }
.gcchat-private-sub { color: rgba(255,255,255,.94); font-size: 15px; line-height: 1.4; max-width: 640px; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.gcchat-private-inner { padding: 16px 20px 18px; }
.gcchat-myrooms { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.gcchat-myroom { display: flex; flex-direction: column; gap: 3px; text-align: left; background: #FFF9F0; border: 2px solid #f0e2c8; border-radius: 12px; padding: 10px 16px; cursor: pointer; font-family: inherit; }
.gcchat-myroom:hover { border-color: #F5A623; }
.gcchat-myroom-name { font-size: 17px; font-weight: 700; color: #3d2f18; }
.gcchat-myroom-meta { font-size: 14px; color: #8a6d3b; }
.gcchat-private-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gcchat-code-join { display: inline-flex; gap: 8px; align-items: center; }
.gcchat-code-input { width: 130px; font-size: 17px; padding: 10px 14px; border: 2px solid #e8d9b8; border-radius: 999px; text-transform: uppercase; letter-spacing: 2px; min-height: 46px; }
.gcchat-code-input:focus { border-color: #F5A623; outline: none; }
.gcchat-bigcode { text-align: center; font-size: 40px; font-weight: 800; letter-spacing: 8px; color: #9a6b00; background: #fff; border: 2px dashed #F5A623; border-radius: 14px; padding: 14px; margin: 14px 0; }
.gcchat-code-hint { color: #6b5b45; font-size: 15.5px; }
.gcchat-newroom-name { width: 100%; margin: 10px 0; border-radius: 12px; }
.gcchat-modal-actions-inline { display: flex; justify-content: center; margin-top: 10px; }
.gcchat-roomcode { font-size: 14.5px; color: #8a6d3b; background: #fdf1d7; border-radius: 999px; padding: 6px 12px; }
.gcchat-close-room-btn { background: none; border: 1px solid #d9b8b8; color: #7a3b3b; border-radius: 999px; padding: 7px 13px; font-size: 14px; cursor: pointer; }

/* pinned message */
.gcchat-pinbar { background: #fdf6e3; border-bottom: 1px solid #f0e2c8; font-size: 15.5px; color: #5b4a2e; padding: 8px 14px; }
.gcchat-unpin { background: none; border: none; color: #b3a180; cursor: pointer; font-size: 15px; float: right; }

/* Goldie AI messages */
/* Goldie's bubbles: soft lavender, clearly distinct from the member's warm
   cream (right-accented) and other members' white. */
.gcchat-goldie { background: linear-gradient(135deg, #f7f4fd, #eee8fa); border-color: #d9cdf2; border-left: 3px solid #8d7cc2; }
.gcchat-goldie .gcchat-msg-name { color: #6a58a8; }
.gcchat-ai-badge { display: inline-block; background: #F5A623; color: #4a3200; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; vertical-align: middle; letter-spacing: .5px; }

/* mentions */
.gcchat-mention { border-left: 4px solid #F5A623; background: #fffbe8; }

/* reactions */
.gcchat-msg-reactions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.gcchat-msg-reactions:empty { display: none; }
.gcchat-rchip { background: #fff; border: 1px solid #eee0c5; border-radius: 999px; font-size: 14.5px; padding: 3px 10px; cursor: pointer; }
.gcchat-rchip:hover { border-color: #F5A623; }
.gcchat-react-row { display: flex; gap: 10px; justify-content: center; margin: 12px 0; }
.gcchat-react-big { font-size: 26px; background: #fff; border: 2px solid #eee0c5; border-radius: 14px; padding: 8px 12px; cursor: pointer; min-width: 52px; min-height: 52px; }
.gcchat-react-big:hover { border-color: #F5A623; transform: scale(1.08); }
.gcchat-reply-btn, .gcchat-pin-btn { display: block; width: 100%; margin: 8px 0; text-align: left; }
.gcchat-sheet-hr { border: none; border-top: 1px solid #f0e2c8; margin: 14px 0 8px; }
.gcchat-sheet-label { color: #8a6d3b; font-size: 15px; margin: 0 0 6px; }

/* guest pass note */
.gcchat-pass-note { background: #fff; border-top: 1px solid #f0e2c8; text-align: center; font-size: 15px; color: #7a5b16; padding: 8px 12px; }
.gcchat-pass-note a { color: #9a6b00; font-weight: 600; }

/* people list rows */
.gcchat-people-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gcchat-people-list .gcchat-kick { padding: 6px 14px; font-size: 14px; min-height: 36px; border-color: #d9b8b8; color: #7a3b3b; }

/* mobile */
@media (max-width: 640px) {
  .gcchat-roomview { height: 82vh; min-height: 480px; border-radius: 12px; }
  /* Don't let the title get flex-squeezed into a vertical one-char-per-line column;
     keep it on one line at natural width so the bar stays short. */
  .gcchat-roomtitle { font-size: 16px; flex: 0 1 auto; white-space: nowrap; text-align: left; overflow: hidden; text-overflow: ellipsis; }
  /* Tighter room bar so the control row doesn't eat the screen: icon-only toggles,
     smaller pills, less gap. Keeps everything on ~2 rows even at phone width. */
  .gcchat-roombar { gap: 6px; padding: 8px 10px; }
  .gcchat-music-btn, .gcchat-read-btn, .gcchat-chime-btn, .gcchat-people-btn, .gcchat-textsize-btn { font-size: 14px; padding: 8px 10px; min-width: 44px; }
  .gcchat-read-state { display: none; } /* 🔊 icon only on phones */
  /* Composer must always show input + mic + Send on one line (no clipped Send) */
  .gcchat-composer { gap: 6px; padding: 8px 10px; }
  .gcchat-send { min-width: 76px; padding-left: 14px; padding-right: 14px; }
  /* one clean row on phones: emoji buttons share the width evenly, never wrap */
  .gcchat-quickbar { gap: 5px; padding: 6px 8px 0; flex-wrap: nowrap; }
  .gcchat-quick { font-size: 21px; min-width: 0; min-height: 42px; flex: 1 1 0; }
  .gcchat-msg.gcchat-emoji-msg .gcchat-msg-text { font-size: 40px; }
  .gcchat-mic { min-width: 46px; font-size: 20px; }
  .gcchat-msg { max-width: 92%; }
  .gcchat-roombar-rules { display: none; }
  .gcchat-roomgrid { grid-template-columns: 1fr; }
  .gcchat-hero { border-radius: 14px; }
  /* the 2.36:1 banner is only ~150px tall at phone width — too short for the
     greeting, whose first line lands on the bright wall (white-on-white).
     Crop the image taller so the text sits on a real shaded canvas. */
  .gcchat-hero img { height: 300px; object-fit: cover; object-position: 12% 40%; } /* armchair side — keeps the wall's baked-in title art out of the crop */
  .gcchat-hero-title { font-size: 21px; }
  .gcchat-hero-tagline { font-size: 15px; }
  .gcchat-hero-shade { padding: 40px 14px 14px; gap: 5px; background: linear-gradient(to top, rgba(40,28,8,.85), rgba(40,28,8,.45) 60%, rgba(40,28,8,0)); }
}


/* ---------------- registered vs Premium compare card ---------------- */
.gcchat-upgrade-modal { max-width: 660px; }
.gcchat-upgrade-modal h3 { text-align: center; margin: 0 0 6px; font-size: 24px; }
.gcchat-upgrade-note { text-align: center; color: #6b5d4a; margin: 0 0 6px; font-size: 16.5px; }
.gcchat-upgrade-cols { display: flex; gap: 14px; margin: 16px 0 4px; align-items: stretch; }
.gcchat-upgrade-col { flex: 1; border: 2px solid #eee2cc; border-radius: 14px; padding: 14px 16px; background: #fffdf8; }
.gcchat-upgrade-col-prem { border-color: #F5A623; background: linear-gradient(180deg, #fff8ea, #fff2d6); box-shadow: 0 6px 20px rgba(245,166,35,.22); }
.gcchat-upgrade-colhead { font-weight: 800; font-size: 19px; margin-bottom: 10px; color: #33281a; }
.gcchat-upgrade-colhead span { display: block; font-size: 14px; font-weight: 600; color: #8a7a60; margin-top: 2px; }
.gcchat-upgrade-col ul { list-style: none; margin: 0; padding: 0; }
.gcchat-upgrade-col li { padding: 7px 0; font-size: 16.5px; line-height: 1.45; border-bottom: 1px dashed #eadfc8; }
.gcchat-upgrade-col li:last-child { border-bottom: 0; }
.gcchat-upgrade-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.gcchat-upgrade-actions .gcchat-btn { font-size: 18px; padding: 12px 22px; }
@media (max-width: 600px) {
  .gcchat-upgrade-cols { flex-direction: column; }
  .gcchat-upgrade-modal { max-height: 86vh; }
}

/* Goldie's article links (our-library recommendations) */
.gcchat-artlink { color: #6a52b3; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.gcchat-artlink:hover { color: #4d3a8c; }