.dc-community { max-width: 900px; margin: 0 auto; padding-bottom: 28px; }
.dc-community, .dc-community * { box-sizing: border-box; }
.dc-community button, .dc-community textarea { font: inherit; }
.dc-community-head { margin: 0 0 18px; }
.dc-community-head h1 { margin: 0 0 5px; }
.dc-community-head p { margin: 0; color: var(--muted); }
.dc-community-auth { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:14px; margin:18px 0; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.dc-community-user { display:flex; align-items:center; gap:10px; min-width:0; }
.dc-community-avatar { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border-radius:50%; overflow:hidden; color:var(--on-solid); background:var(--solid); font-size:.9rem; font-weight:700; }
.dc-community-avatar img { width:100%; height:100%; object-fit:cover; }
.dc-community-user-meta { min-width:0; }
.dc-community-user-meta strong, .dc-community-user-meta small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dc-community-user-meta small { color:var(--muted); font-size:.82rem; }
.dc-community-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:9px 14px; border:1px solid var(--line); border-radius:11px; background:var(--surface); color:var(--fg); font-weight:700; cursor:pointer; text-decoration:none; }
.dc-community-btn:hover { border-color:var(--ink); }
.dc-community-btn:disabled { cursor:not-allowed; opacity:.55; }
.dc-community-btn-primary { border-color:var(--solid); background:var(--solid); color:var(--on-solid); }
.dc-community-btn-google { min-height:46px; }
.dc-community-btn-google svg { width:19px; height:19px; }
.dc-community-alert { margin:12px 0; padding:12px 14px; border-radius:10px; background:var(--tile); color:var(--muted); font-size:.92rem; }
.dc-community-alert[data-kind="error"] { background:var(--warn-bg); color:var(--fg); }
.dc-community-alert:empty { display:none; }
.dc-community-switch { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:5px; margin:18px 0 14px; border:1px solid var(--line); border-radius:13px; background:var(--tile); }
.dc-community-switch button { min-height:42px; border:0; border-radius:9px; background:transparent; color:var(--muted); font-weight:700; cursor:pointer; }
.dc-community-switch button[aria-selected="true"] { background:var(--surface); color:var(--ink); box-shadow:var(--shadow); }
.dc-community-panel[hidden] { display:none; }
.dc-community-compose { padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--surface); box-shadow:var(--shadow); }
.dc-community-compose label { display:block; margin-bottom:8px; font-weight:700; }
.dc-community-compose textarea { width:100%; min-height:100px; resize:vertical; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--fg); line-height:1.45; }
.dc-community-compose textarea:focus-visible, .dc-community-chat-form input:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.dc-community-compose-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; }
.dc-community-count { color:var(--muted); font-size:.84rem; font-variant-numeric:tabular-nums; }
.dc-community-list { display:grid; gap:11px; margin-top:14px; }
.dc-community-card { min-width:0; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--surface); box-shadow:var(--shadow); }
.dc-community-card-head { display:flex; align-items:center; gap:10px; }
.dc-community-card-head .dc-community-avatar { width:36px; height:36px; flex-basis:36px; }
.dc-community-author { min-width:0; flex:1; }
.dc-community-author strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dc-community-author time { display:block; color:var(--muted); font-size:.78rem; }
.dc-community-card-body { margin:12px 0; overflow-wrap:anywhere; white-space:pre-wrap; }
.dc-community-card-actions { display:flex; align-items:center; gap:8px; border-top:1px solid var(--line); padding-top:10px; }
.dc-community-card-actions .dc-community-btn { min-height:36px; padding:6px 10px; font-size:.86rem; }
.dc-community-card-actions .is-liked { color:var(--no); border-color:var(--no); }
.dc-community-empty { padding:24px 14px; border:1px dashed var(--line); border-radius:14px; text-align:center; color:var(--muted); }
.dc-community-chat { display:flex; flex-direction:column; height:min(58vh, 620px); min-height:380px; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.dc-community-chat-intro { padding:12px 14px; border-bottom:1px solid var(--line); color:var(--muted); font-size:.9rem; }
.dc-community-chat-list { flex:1; overflow:auto; padding:12px; overscroll-behavior:contain; }
.dc-community-message { display:flex; gap:9px; margin:0 0 13px; }
.dc-community-message .dc-community-avatar { width:32px; height:32px; flex-basis:32px; font-size:.78rem; }
.dc-community-message-content { min-width:0; max-width:min(88%, 640px); padding:9px 11px; border-radius:4px 13px 13px 13px; background:var(--tile); }
.dc-community-message-meta { display:flex; align-items:baseline; gap:8px; margin-bottom:3px; }
.dc-community-message-meta strong { font-size:.88rem; }
.dc-community-message-meta time { color:var(--muted); font-size:.72rem; }
.dc-community-message-delete { min-height:24px !important; padding:2px 7px !important; font-size:.7rem !important; }
.dc-community-message-body { overflow-wrap:anywhere; white-space:pre-wrap; }
.dc-community-message-own { flex-direction:row-reverse; }
.dc-community-message-own .dc-community-message-content { border-radius:13px 4px 13px 13px; background:var(--hl); }
.dc-community-chat-form { display:flex; gap:8px; padding:10px; border-top:1px solid var(--line); }
.dc-community-chat-form input { flex:1; min-width:0; min-height:44px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--fg); }
.dc-community-chat-note { margin:0; padding:12px; border-top:1px solid var(--line); text-align:center; color:var(--muted); font-size:.9rem; }
.dc-community-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:520px) {
  .dc-community-auth { align-items:flex-start; }
  .dc-community-auth > .dc-community-btn { width:100%; }
  .dc-community-compose-foot { align-items:stretch; flex-direction:column; }
  .dc-community-compose-foot .dc-community-btn { width:100%; }
  .dc-community-card, .dc-community-compose { padding:12px; }
  .dc-community-chat { height:58vh; min-height:340px; }
  .dc-community-chat-form { gap:6px; padding:8px; }
  .dc-community-chat-form .dc-community-btn { padding:8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-community *, .dc-community *::before, .dc-community *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; }
}


/* Global sign-in and account controls */
.dc-site-profile {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(243,251,252,.42);
  border-radius: 50%;
  color: var(--mast-fg);
  background: rgba(0,0,0,.18);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.dc-site-profile:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,212,224,.18); }
.dc-site-profile:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.dc-site-profile svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dc-site-profile-image { display:block; width:100%; height:100%; object-fit:cover; }
.dc-site-profile-initials { display:grid; width:100%; height:100%; place-items:center; color:var(--mast-fg); background:var(--solid); font-weight:700; }

.dc-login-backdrop {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) 16px max(18px, env(safe-area-inset-bottom, 0px));
  background: rgba(3, 9, 18, .68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: dc-login-fade .2s ease both;
}
.dc-login-backdrop[hidden] { display:none !important; }
.dc-login-dialog {
  position: relative;
  width: min(100%, 440px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--fg);
  background:
    radial-gradient(440px 220px at 100% 0, var(--accent-soft), transparent 70%),
    var(--surface);
  box-shadow: 0 28px 90px rgba(0,0,0,.38);
  text-align: center;
  animation: dc-login-rise .24s cubic-bezier(.2,.8,.2,1) both;
}
.dc-login-close {
  position:absolute;
  top:12px;
  right:12px;
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:50%;
  color:var(--muted);
  background:var(--surface);
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.dc-login-mark {
  display:grid;
  width:54px;
  height:54px;
  margin:0 auto 12px;
  place-items:center;
  border:1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  border-radius:18px;
  color:var(--on-solid);
  background:linear-gradient(145deg,var(--mast-2),var(--mast-3));
  box-shadow:0 10px 28px rgba(20,138,152,.24);
  font:700 25px var(--font,system-ui);
}
.dc-login-eyebrow {
  margin:0 0 8px;
  color:var(--ink);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.dc-login-dialog h2 { margin:0; color:var(--fg); font:700 clamp(1.35rem,5vw,1.7rem)/1.2 var(--font,system-ui); letter-spacing:-.035em; }
.dc-login-dialog > p:not(.dc-login-eyebrow) { margin:12px 0 22px; color:var(--muted); font-size:.96rem; line-height:1.6; }
.dc-login-google {
  display:flex;
  width:100%;
  min-height:48px;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:13px;
  color:var(--fg);
  background:var(--surface);
  font:600 .95rem var(--font,system-ui);
  box-shadow:var(--shadow);
  cursor:pointer;
}
.dc-login-google:hover { border-color:var(--ink); box-shadow:var(--shadow-up); }
.dc-google-g {
  font:bold 1.2rem Arial,sans-serif;
  background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 25% 48%,#fbbc05 48% 70%,#ea4335 70% 88%,#4285f4 88%);
  color:transparent;
  background-clip:text;
  -webkit-background-clip:text;
}
.dc-login-continue {
  display:block;
  min-height:42px;
  margin:10px auto 0;
  padding:8px 14px;
  border:0;
  color:var(--muted);
  background:transparent;
  font:600 .88rem var(--font,system-ui);
  cursor:pointer;
}
.dc-login-continue:hover { color:var(--ink); }
.dc-profile-menu {
  position:fixed;
  z-index:2001;
  width:min(290px,calc(100vw - 16px));
  padding:8px;
  border:1px solid var(--line);
  border-radius:16px;
  color:var(--fg);
  background:var(--surface);
  box-shadow:0 18px 50px rgba(0,0,0,.24);
}
.dc-profile-menu[hidden] { display:none !important; }
.dc-profile-summary { display:flex; align-items:center; gap:11px; min-width:0; padding:10px; border-bottom:1px solid var(--line); }
.dc-profile-summary > img,.dc-profile-initials { width:42px; height:42px; flex:0 0 42px; border-radius:50%; object-fit:cover; }
.dc-profile-initials { display:grid; place-items:center; color:var(--on-solid); background:var(--solid); font-weight:700; }
.dc-profile-summary > span:last-child { min-width:0; }
.dc-profile-summary strong,.dc-profile-summary small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dc-profile-summary small { margin-top:3px; color:var(--muted); font-size:.8rem; }
.dc-profile-menu a,.dc-profile-menu button {
  display:flex;
  width:100%;
  min-height:44px;
  align-items:center;
  padding:0 11px;
  border:0;
  border-radius:10px;
  color:var(--fg);
  background:transparent;
  font:600 .9rem var(--font,system-ui);
  text-align:left;
  text-decoration:none;
  cursor:pointer;
}
.dc-profile-menu a:hover,.dc-profile-menu button:hover { color:var(--ink); background:var(--tile); }
body.dc-modal-open { overflow:hidden; }
@keyframes dc-login-fade { from { opacity:0; } to { opacity:1; } }
@keyframes dc-login-rise { from { opacity:0; transform:translateY(10px) scale(.985); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width:520px) {
  .dc-login-dialog { padding:26px 20px 20px; border-radius:20px; }
  .dc-site-profile { width:36px; height:36px; flex-basis:36px; }
}
@media (prefers-reduced-motion:reduce) {
  .dc-login-backdrop,.dc-login-dialog,.dc-site-profile { animation:none; transition:none; }
}


/* Private community gate */
.dc-community-locked {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--tile);
  isolation: isolate;
}
.dc-community-blur-preview {
  display: grid;
  gap: 12px;
  padding: 18px;
  filter: blur(7px);
  opacity: .74;
  transform: scale(1.025);
  user-select: none;
  pointer-events: none;
}
.dc-preview-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 11px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.dc-preview-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--accent),var(--solid));
}
.dc-preview-lines { display:grid; align-content:center; gap:7px; }
.dc-preview-lines i,.dc-preview-card b {
  display:block;
  height:9px;
  border-radius:8px;
  background:var(--line);
}
.dc-preview-lines i:first-child { width:min(54%,180px); }
.dc-preview-lines i:last-child { width:min(34%,120px); opacity:.7; }
.dc-preview-card b { grid-column:1/-1; width:92%; height:10px; opacity:.8; }
.dc-preview-card b:last-child { width:65%; }
.dc-community-lock-overlay {
  position:absolute;
  inset:0;
  z-index:1;
  display:grid;
  place-items:center;
  padding:18px;
  background:color-mix(in srgb,var(--bg) 38%,transparent);
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
}
.dc-community-lock-card {
  width:min(100%,390px);
  padding:24px;
  border:1px solid color-mix(in srgb,var(--accent) 34%,var(--line));
  border-radius:20px;
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  box-shadow:var(--shadow-up);
  text-align:center;
}
.dc-lock-icon {
  display:grid;
  width:48px;
  height:48px;
  margin:0 auto 12px;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--accent) 42%,var(--line));
  border-radius:15px;
  color:var(--ink);
  background:var(--accent-soft);
}
.dc-lock-icon svg { width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.dc-community-lock-card h2 { margin:0; color:var(--fg); font:700 clamp(1.15rem,4vw,1.4rem)/1.25 var(--font,system-ui); letter-spacing:-.025em; }
.dc-community-lock-card p { margin:10px 0 18px; color:var(--muted); font-size:.92rem; line-height:1.55; }
.dc-community-lock-card .dc-community-btn { width:100%; min-height:46px; }
.dc-community-lock-card .dc-google-g {
  font:bold 1.2rem Arial,sans-serif;
  background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 25% 48%,#fbbc05 48% 70%,#ea4335 70% 88%,#4285f4 88%);
  color:transparent;
  background-clip:text;
  -webkit-background-clip:text;
}
.dc-community-private-content[hidden],.dc-community-locked[hidden] { display:none !important; }
@media(max-width:520px) {
  .dc-community-locked { min-height:330px; border-radius:14px; }
  .dc-community-blur-preview { padding:12px; gap:10px; }
  .dc-community-lock-card { padding:20px 16px; border-radius:17px; }
}

/* Community motion and touch feedback */
@keyframes dc-community-card-in-26 {
  0% { opacity:0; transform:translateY(16px) scale(.98); filter:blur(5px); }
  75% { opacity:1; transform:translateY(-1px) scale(1.003); filter:blur(0); }
  100% { opacity:1; transform:none; }
}
@keyframes dc-community-pop-26 { from{transform:scale(.94)} 70%{transform:scale(1.04)} to{transform:scale(1)} }
@media (prefers-reduced-motion:no-preference) {
  .dc-community-card,.dc-community-compose,.dc-community-chat,.dc-community-auth {
    transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .28s ease,border-color .22s ease;
  }
  .dc-community-card:hover { transform:translateY(-3px); box-shadow:0 18px 46px rgba(4,24,45,.16); }
  .dc-community-btn,.dc-site-profile,.dc-profile-menu button { transition:transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .24s ease,background-color .2s ease; }
  .dc-community-btn:active,.dc-profile-menu button:active { transform:scale(.96); }
  .dc-login-backdrop:not([hidden]) .dc-login-dialog { animation:dc-community-card-in-26 .44s cubic-bezier(.16,.76,.25,1) both; }
  .dc-community-message { animation:dc-community-card-in-26 .34s cubic-bezier(.2,.8,.2,1) both; }
  .dc-community-message:nth-child(3n+2) { animation-delay:45ms; }
  .dc-community-message:nth-child(3n) { animation-delay:90ms; }
  .dc-community-avatar { transition:transform .22s ease,box-shadow .22s ease; }
  .dc-community-user:hover .dc-community-avatar { transform:scale(1.08); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent); }
  .dc-lock-icon { animation:dc-community-pop-26 .55s cubic-bezier(.2,.8,.2,1) both; }
  .dc-community-btn-google:hover svg { transform:translateX(2px) scale(1.08); }
  .dc-community-btn-google svg { transition:transform .2s ease; }
}

/* Post image upload and a cleaner member-only feed */
.dc-community-auth { display:none !important; }
.dc-community-compose { display:grid; gap:12px; }
.dc-community-compose > label { margin:0; }
.dc-community-compose-media { display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; }
.dc-community-media-trigger {
  display:inline-flex !important; align-items:center; gap:8px; margin:0 !important;
  min-height:42px; padding:8px 13px; border:1px solid var(--line); border-radius:999px;
  color:var(--ink); background:color-mix(in srgb,var(--surface) 80%,transparent);
  cursor:pointer; user-select:none; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.dc-community-media-trigger:hover { transform:translateY(-1px); border-color:var(--accent); box-shadow:0 7px 20px color-mix(in srgb,var(--accent) 14%,transparent); }
.dc-community-media-trigger svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.dc-community-media-trigger b { font-variant-numeric:tabular-nums; }
.dc-community-media-hint { color:var(--muted); font-size:.78rem; line-height:1.4; }
.dc-community-file-input {
  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;
}
.dc-community-file-input:focus-visible + .dc-community-media-hint { outline:2px solid var(--accent); outline-offset:4px; border-radius:4px; }
.dc-community-image-previews,.dc-community-image-grid {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;
}
.dc-community-image-previews:empty { display:none; }
.dc-community-image-previews[data-count="1"],.dc-community-image-grid[data-count="1"] { grid-template-columns:minmax(0,1fr); max-width:540px; }
.dc-community-image-previews[data-count="3"],.dc-community-image-grid[data-count="3"] { grid-auto-rows:minmax(90px,150px); }
.dc-community-image-preview,.dc-community-post-image {
  position:relative; display:block; min-width:0; overflow:hidden; border:1px solid var(--line);
  border-radius:14px; background:var(--tile); aspect-ratio:4/3;
}
.dc-community-image-preview img,.dc-community-post-image img {
  display:block; width:100%; height:100%; object-fit:cover;
}
.dc-community-image-preview button {
  position:absolute; top:7px; right:7px; display:grid; place-items:center;
  width:32px; height:32px; padding:0; border:1px solid rgba(255,255,255,.58);
  border-radius:50%; color:#fff; background:rgba(6,15,28,.72); font-size:1.25rem; line-height:1;
  -webkit-backdrop-filter:blur(9px); backdrop-filter:blur(9px);
}
.dc-community-image-preview button:hover { background:rgba(6,15,28,.92); transform:scale(1.06); }
.dc-community-image-previews[data-count="3"] .dc-community-image-preview:first-child,
.dc-community-image-grid[data-count="3"] .dc-community-post-image:first-child { grid-row:span 2; aspect-ratio:auto; }
.dc-community-card-body { margin-bottom:12px; }
.dc-community-image-grid { margin:10px 0 14px; }
.dc-community-post-image { color:inherit; }
.dc-community-post-image:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.dc-community-post-image img { transition:transform .45s cubic-bezier(.2,.8,.2,1),filter .3s ease; }
.dc-community-post-image:hover img { transform:scale(1.035); filter:saturate(1.06); }
@media(max-width:520px) {
  .dc-community-compose-media { align-items:flex-start; }
  .dc-community-image-previews,.dc-community-image-grid { gap:6px; }
  .dc-community-image-previews[data-count="3"],.dc-community-image-grid[data-count="3"] { grid-auto-rows:minmax(78px,112px); }
}

/* Keep each feed entry as a distinct, flat card */
.dc-community-list{display:flex;flex-direction:column;gap:12px}
.dc-community-list>.dc-community-card{position:relative;display:block;min-width:0;margin:0;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--surface) 94%,var(--bg));box-shadow:0 8px 24px rgba(0,0,0,.12)}
.dc-community-card>.dc-community-card-actions{display:flex}
.dc-community-card .dc-community-card{margin:0}

/* Quiet, readable controls and Twitter-like post replies */
.dc-community-btn,.dc-community-btn-primary,.dc-community-btn-google{box-shadow:none!important;text-shadow:none!important;filter:none!important}
.dc-community-btn{background:transparent;border:1px solid var(--line);color:var(--fg);transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.dc-community-btn:hover{background:var(--surface);border-color:var(--muted);box-shadow:none!important}
.dc-community-btn-primary{background:var(--accent);border:1px solid var(--accent);color:var(--on-solid,#07131c)}
.dc-community-btn-primary:hover{filter:brightness(.96)!important;box-shadow:none!important}
.dc-community-card-actions .dc-community-reply{margin-left:2px}
.dc-community-comments{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.dc-community-comments[hidden]{display:none!important}
.dc-community-comment-list{display:grid;gap:8px;margin-bottom:10px}
.dc-community-comment{display:flex;align-items:flex-start;gap:9px;padding:9px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
.dc-community-comment .dc-community-avatar{width:30px;height:30px;flex:0 0 30px}
.dc-community-comment>div{min-width:0;flex:1}
.dc-community-comment strong{margin-right:8px}
.dc-community-comment time{color:var(--muted);font-size:.76rem}
.dc-community-comment p{margin:4px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}
.dc-community-comment-form{display:flex;align-items:flex-end;gap:8px}
.dc-community-comment-form textarea{flex:1;min-height:42px;max-height:120px;resize:vertical;padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--fg);font:inherit}
.dc-community-comment-form .dc-community-btn{min-height:40px}

/* Neutralize the oversized cyan fill and glow on community controls */
.dc-community-card-actions .dc-community-btn,
.dc-community-comment-form .dc-community-btn,
.dc-community-btn-primary,
.dc-community-btn-google,
.dc-community-media-trigger,
.dc-community-comment-delete{background:color-mix(in srgb,var(--surface) 92%,var(--bg))!important;color:var(--fg)!important;border:1px solid var(--line)!important;box-shadow:none!important;text-shadow:none!important;filter:none!important}
.dc-community-card-actions .dc-community-btn:hover,
.dc-community-comment-form .dc-community-btn:hover,
.dc-community-comment-delete:hover{background:color-mix(in srgb,var(--surface) 78%,var(--accent-soft))!important;border-color:var(--muted)!important;box-shadow:none!important}
.dc-community-card-actions .dc-community-btn.is-liked{color:var(--accent)!important;border-color:color-mix(in srgb,var(--accent) 55%,var(--line))!important}
.dc-community-comment-delete{min-height:30px;margin-left:auto;padding:4px 9px;border-radius:10px;font:500 .75rem inherit}

/* Red like action, with a quieter outline when inactive */
.dc-community-card-actions [data-community-like]{color:#e5485d!important;border-color:color-mix(in srgb,#e5485d 55%,var(--line))!important}
.dc-community-card-actions [data-community-like].is-liked{background:color-mix(in srgb,#e5485d 15%,var(--surface))!important;color:#ff4d63!important;border-color:#e5485d!important}
.dc-community-card-actions [data-community-like]:hover{background:color-mix(in srgb,#e5485d 10%,var(--surface))!important;border-color:#e5485d!important}

.dc-community-post-image{cursor:zoom-in}
.dc-image-lightbox{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:24px;background:rgba(3,8,16,.92);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.dc-image-lightbox[hidden]{display:none!important}
.dc-image-lightbox img{display:block;max-width:min(94vw,1440px);max-height:90vh;object-fit:contain;border-radius:12px;box-shadow:0 18px 60px rgba(0,0,0,.4)}
.dc-image-lightbox-close{position:absolute;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));width:44px;height:44px;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(17,28,43,.8);color:#fff;font-size:28px;line-height:1;cursor:pointer}
body.dc-lightbox-open{overflow:hidden}
@media(max-width:620px){.dc-image-lightbox{padding:12px}.dc-image-lightbox img{max-width:96vw;max-height:88vh;border-radius:8px}}


/* Chat: live presence and first-message conduct note */
.dc-community-chat-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.dc-chat-live-label{flex:1;min-width:0;line-height:1.35}
.dc-chat-presence{display:inline-flex;flex:none;align-items:center;gap:7px;white-space:nowrap;color:var(--fg);font-size:.82rem;font-weight:600}
.dc-chat-presence b{font-variant-numeric:tabular-nums}
.dc-chat-presence-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#27c76f;box-shadow:0 0 0 3px rgba(39,199,111,.12)}
.dc-chat-presence[data-connected="true"] .dc-chat-presence-dot{animation:dc-presence-pulse 1.25s ease-in-out infinite}
.dc-chat-presence[data-connected="false"] .dc-chat-presence-dot{background:var(--faint);box-shadow:none}
@keyframes dc-presence-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.38;transform:scale(.82)}}
.dc-chat-conduct-notice{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px;padding:14px 16px;border:1px solid color-mix(in srgb,#D89A2B 42%,var(--line));border-radius:14px;background:color-mix(in srgb,#D89A2B 9%,var(--surface));color:var(--fg)}
.dc-chat-conduct-notice p{margin:0;max-width:68ch;font-size:.9rem;line-height:1.5}
.dc-chat-conduct-notice .dc-community-btn{flex:none}
@media(max-width:520px){
  .dc-community-chat-intro{gap:8px;padding:10px 11px}
  .dc-chat-live-label{font-size:.76rem}
  .dc-chat-presence{gap:5px;font-size:.7rem}
  .dc-chat-presence-dot{width:7px;height:7px}
  .dc-chat-conduct-notice{align-items:flex-start;flex-direction:column;margin:9px;padding:12px}
}
@media(prefers-reduced-motion:reduce){.dc-chat-presence[data-connected="true"] .dc-chat-presence-dot{animation:none}}

/* Home page: contained search, aligned labels, and a clearer page title */
#view>h1.page.home-title{font-size:clamp(2.45rem,7.2vw,3.25rem);line-height:1.06;margin-bottom:17px}
#view>.search{width:100%;min-width:0;max-width:100%;padding:16px;margin:0 0 20px;overflow:hidden}
#view>.search>label{display:block;position:static;max-width:100%;margin:0 0 9px;line-height:1.4;overflow-wrap:anywhere}
#view>.search>input{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
#view>.search>#qres{min-width:0;max-width:100%;overflow-wrap:anywhere}
#view>.folbox{width:100%;min-width:0;max-width:100%;padding:clamp(16px,3vw,24px);overflow:hidden}
#view>.folbox .fol-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
#view>.folbox .fol-head>div{min-width:0;flex:1}
#view>.folbox .fol-news-empty{overflow-wrap:anywhere}
#view>.grid{width:100%;min-width:0;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}

/* Unread chat count badge */
.dc-community-switch button[role="tab"]{display:flex;align-items:center;justify-content:center;gap:8px}
.dc-community-unread{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#d92d45;color:#fff;font-size:.68rem;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}

/* Clearly legible, restrained delete action in own chat bubbles */
.dc-community-message-delete{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:28px!important;min-width:54px;padding:4px 10px!important;
  border:1px solid color-mix(in srgb,var(--no) 48%,var(--line))!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--no) 11%,var(--surface))!important;
  color:var(--no)!important;
  font-size:.74rem!important;font-weight:700!important;line-height:1.2!important;
  white-space:nowrap;flex:none;opacity:1!important;box-shadow:none!important;
}
.dc-community-message-delete:hover{
  border-color:#a51d32!important;background:#a51d32!important;color:#fff!important;
}
.dc-community-message-delete:active{transform:none!important}

/* Chat reports and admin review: clear, low-contrast actions */
.dc-community-report,.dc-community-reported{
  display:inline-flex;align-items:center;justify-content:center;min-height:30px;
  margin-top:8px;padding:5px 11px;border:1px solid var(--line);border-radius:999px;
  background:transparent;color:var(--muted);font-size:.78rem;font-weight:650;
  line-height:1.2;box-shadow:none!important
}
.dc-community-report{cursor:pointer}
.dc-community-report:hover{border-color:var(--no);color:var(--no);background:color-mix(in srgb,var(--no) 8%,transparent)}
.dc-community-report:disabled{opacity:.55;cursor:wait}
.dc-community-reported{border-style:dashed}
.dc-community-message-moderated{opacity:.82}
.dc-chat-moderation{
  margin:0 0 14px;padding:16px;border:1px solid var(--line);border-radius:16px;
  background:var(--surface);color:var(--text)
}
.dc-chat-moderation[hidden]{display:none}
.dc-chat-moderation h3{margin:0 0 8px;font-size:1rem}
.dc-chat-moderation>p{margin:0;color:var(--muted)}
.dc-chat-review-item{padding:12px 0;border-top:1px solid var(--line)}
.dc-chat-review-item p{margin:0 0 8px;overflow-wrap:anywhere}
.dc-chat-review-item small{color:var(--muted)}
.dc-chat-review-item>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
@media(max-width:640px){
  .dc-chat-moderation{padding:13px;border-radius:13px}
  .dc-chat-review-item>div .dc-community-btn{min-height:38px}
}

/* Chat typing presence and a small, local delete transition */
.dc-chat-typing{min-height:1.35em;padding:2px 4px 7px;color:var(--muted);font-size:.83rem}
.dc-chat-typing[hidden]{display:none}
.dc-community-message{transition:opacity .18s ease,transform .18s ease,max-height .18s ease,margin .18s ease,padding .18s ease}
.dc-community-message-leaving{opacity:0;transform:translateY(5px);max-height:0!important;min-height:0!important;margin-block:0!important;padding-block:0!important;border-width:0!important;overflow:hidden}
@media(prefers-reduced-motion:reduce){.dc-community-message{transition:none!important}}

/* Welcome modal theme choices */
.dc-login-theme{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:14px 0 2px;color:var(--muted);font-size:.84rem}
.dc-login-theme>span{width:100%;text-align:center;font-weight:650}
.dc-login-theme button{min-height:36px;padding:7px 13px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--fg);font:inherit;font-size:.84rem;font-weight:650;cursor:pointer;box-shadow:none;transition:border-color .16s ease,background-color .16s ease,color .16s ease}
.dc-login-theme button:hover{border-color:var(--accent)}
.dc-login-theme button[aria-pressed="true"]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--fg)}
.dc-login-theme button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Compact per-message actions menu */
.dc-community-message-meta{align-items:center}
.dc-chat-message-actions{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;margin-left:auto}
.dc-chat-message-more{display:grid;place-items:center;width:30px;height:30px;flex:none;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;box-shadow:none!important;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.dc-chat-message-more svg{width:17px;height:17px;fill:currentColor}
.dc-chat-message-more:hover,.dc-chat-message-more[aria-expanded="true"]{border-color:var(--line);background:var(--bg);color:var(--fg)}
.dc-chat-message-more:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.dc-chat-message-menu{position:absolute;z-index:50;top:calc(100% + 5px);right:0;display:grid;gap:2px;min-width:154px;padding:5px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--fg);box-shadow:0 12px 30px rgba(0,0,0,.24);animation:dc-chat-menu-in .14s ease-out both}
.dc-chat-message-menu[hidden]{display:none!important}
.dc-chat-message-menu[data-placement="top"]{top:auto;bottom:calc(100% + 5px)}
.dc-chat-menu-item{display:flex;align-items:center;gap:9px;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:var(--fg);font:inherit;font-size:.86rem;font-weight:600;line-height:1.2;text-align:left;cursor:pointer;box-shadow:none!important}
.dc-chat-menu-item:hover{background:var(--tile);color:var(--fg)}
.dc-chat-menu-item svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dc-chat-menu-report,.dc-chat-menu-delete{color:var(--no)}
.dc-chat-menu-report:hover,.dc-chat-menu-delete:hover{background:color-mix(in srgb,var(--no) 10%,var(--surface));color:var(--no)}
.dc-chat-menu-status{display:block;padding:9px 10px;color:var(--muted);font-size:.82rem;font-weight:650}
@keyframes dc-chat-menu-in{from{opacity:0;transform:translateY(-3px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.dc-chat-message-menu{animation:none}}
