.community-page{min-width:0}.community-page #communityMount{display:grid;gap:var(--space-4)}
.community-composer{border:2px solid var(--border-subtle);background:var(--bg-sidebar);box-shadow:var(--pixel-edge);padding:var(--space-3);min-width:0}
.community-composer-identity{display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-2)}
.community-composer-avatar{display:grid;place-items:center;width:36px;height:36px;flex:none;border:2px solid var(--betooth-muted);background:var(--bg-panel);color:var(--pixel-cyan)}
.app .community-composer .community-composer-trigger{width:100%;text-align:start;color:var(--betooth-light)}
.app .community-composer button.primary:not(:disabled){background:var(--betooth-orange)!important;color:var(--bg-page)!important;border-color:var(--betooth-orange)!important}
.community-compose-body{display:grid;gap:var(--space-3)}
.community-compose-body[hidden],.community-composer [hidden]{display:none!important}
.community-compose-body label{display:grid;gap:var(--space-1);min-width:0}
.community-compose-body textarea{min-height:120px;font-family:Arial,sans-serif;line-height:1.65}
.community-compose-types{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.app .community-page .community-compose-types [aria-pressed=true]{border-color:var(--betooth-orange)!important;background:var(--bg-hover)!important;box-shadow:inset 0 -2px var(--betooth-orange)!important}
.community-compose-helper{margin:0;color:var(--betooth-light);font-size:14px}
.community-compose-more{border-top:2px solid var(--border-subtle);padding-top:var(--space-2)}
.community-compose-body summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--pixel-cyan)}
.community-compose-body summary:focus-visible{outline:2px solid var(--pixel-cyan);outline-offset:2px}
.community-compose-metadata{display:grid;grid-template-columns:2fr 1fr;gap:var(--space-3)}
.community-compose-resource{display:grid;gap:var(--space-3)}
.community-compose-error{color:var(--betooth-orange);margin:0}.community-compose-error:empty{display:none}
.community-identity-note{font-size:12px;color:var(--betooth-light);margin:0}
.community-status[data-success=true]{position:fixed;z-index:80;inset-block-start:calc(var(--topbar-height,76px) + var(--space-3));inset-inline-end:var(--space-3);max-width:min(420px,calc(100vw - 32px));box-shadow:var(--pixel-edge);border-inline-start:3px solid var(--pixel-cyan);padding:var(--space-2);background:var(--bg-panel)}
.community-filters{padding-block:var(--space-2);border-bottom:2px solid var(--border-subtle)}
.community-follow{margin-inline-start:var(--space-2)}
.app .community-page .community-tabs [aria-pressed=true]{border-color:var(--betooth-orange)!important;box-shadow:inset 0 -2px var(--betooth-orange)!important}
.motion-enabled .community-compose-body:not([hidden]){animation:betooth-inline-enter var(--motion-fast) var(--ease-enter)}
@media(prefers-reduced-motion:reduce){.motion-enabled .community-compose-body:not([hidden]){animation:none}}
@media(max-width:640px){.community-compose-metadata{grid-template-columns:1fr}.community-compose-types button{flex:1 1 100px}.community-filters label{min-width:0;flex:1 1 130px}}
.community-page :is(.community-locked,.community-card,.community-form,.community-notification){background:var(--bg-sidebar);border:2px solid var(--border-subtle);border-radius:2px;box-shadow:var(--pixel-edge);padding:var(--space-4);min-width:0}
.community-page :is(h3,h4){margin:0 0 var(--space-3);font-family:BetoothPixel,Arial,sans-serif}.community-page p{line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}.community-page small{color:var(--betooth-light)}
.community-tabs,.community-actions,.community-filters{display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center}.community-tabs{border-bottom:2px solid var(--border-subtle);padding-bottom:var(--space-3)}.community-tabs [aria-pressed="true"]{border-color:var(--betooth-orange);box-shadow:inset 0 -2px var(--betooth-orange)}
.community-page button,.community-page input,.community-page select{min-height:44px}.community-page :is(input,select,textarea){max-width:100%;width:100%;background:var(--bg-panel);color:var(--text-primary);border:2px solid var(--betooth-muted);border-radius:2px;padding:var(--space-2);font:inherit}.community-page :is(input,select,textarea):focus-visible{outline:2px solid var(--pixel-cyan);outline-offset:3px}.community-page textarea{min-height:100px;resize:vertical}
.community-form{display:grid;gap:var(--space-3);max-width:800px}.community-form label{display:grid;gap:var(--space-2)}.community-form details{min-width:0}.community-form input[type=checkbox]{width:20px;min-height:20px}
.community-feed,.community-comments{display:grid;gap:var(--space-3)}.community-card>header{display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center}.community-badge{border:1px solid var(--betooth-muted);padding:2px 6px;font-size:12px;color:var(--betooth-light);background:var(--bg-panel)}.community-card .community-actions{margin-top:var(--space-3)}.community-comments{margin-top:var(--space-4);border-top:2px solid var(--border-subtle);padding-top:var(--space-3)}.community-comment{padding:var(--space-3);background:var(--bg-panel);border-inline-start:2px solid var(--betooth-muted)}.community-comment[data-reply=true]{margin-inline-start:var(--space-4)}
.community-filters label{display:grid;gap:var(--space-1);flex:1;min-width:150px}.community-status{color:var(--betooth-light)}.community-status:empty{display:none}.community-status[data-error=true]{color:var(--betooth-orange)}.community-table-list{display:grid;gap:var(--space-3)}.community-empty{padding:var(--space-4);border-inline-start:3px solid var(--betooth-orange)}
@media(max-width:640px){.community-page :is(.community-form,.community-card,.community-locked){padding:var(--space-3)}.community-tabs button{flex:1 1 110px}.community-actions button{flex:1 1 auto}.community-filters label{min-width:0;flex:1 1 130px;}.community-comment[data-reply=true]{margin-inline-start:var(--space-2)}}
.community-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:94px;padding-block:12px}
.community-hero h2{margin:0 0 8px}.community-hero p{margin:0;color:var(--betooth-light);font-family:Arial,sans-serif;line-height:1.5}
.community-hero-mark{width:110px;height:54px;flex:none;background:repeating-linear-gradient(90deg,transparent 0 16px,var(--border-subtle) 16px 20px);border-bottom:4px solid var(--betooth-orange);opacity:.6}
.community-icon{width:20px;height:20px;flex:none;order:-1;shape-rendering:crispEdges}
.community-avatar{display:grid;place-items:center;width:44px;height:44px;flex:none;background:var(--bg-hover);border:2px solid var(--betooth-muted);box-shadow:var(--pixel-edge);font-weight:700;color:var(--betooth-light)}
.community-page #communityMount{gap:12px}.community-page #communityMount>.community-actions:empty{display:none}.community-identity-note{align-self:start}
.community-page .community-tabs{gap:8px;padding-bottom:10px;border-width:1px;align-items:center}
.app .community-page .community-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px!important;font-size:13px!important;min-height:44px}
.community-personal{margin-inline-start:auto}.community-overflow{position:relative;min-width:0}.community-overflow>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:center;padding:6px 12px;list-style:none;color:var(--betooth-light);border:1px solid var(--border-subtle)}
.community-overflow>summary::-webkit-details-marker{display:none}.community-overflow[open]>summary{color:var(--betooth-orange);border-color:var(--betooth-muted)}
.community-menu{position:absolute;z-index:30;inset-inline-end:0;inset-block-start:calc(100% + 4px);width:224px;max-width:calc(100vw - 32px);max-height:min(60vh,420px);overflow:auto;padding:6px;background:var(--bg-sidebar);border:2px solid var(--betooth-muted);box-shadow:var(--pixel-edge)}
.app .community-page .community-menu>button{display:block;width:100%;text-align:start;padding:8px 10px!important;background:transparent!important;border:0!important;box-shadow:none!important}.community-menu .community-form{padding:8px;box-shadow:none;border:0}.community-menu details>summary{cursor:pointer;padding:10px;min-height:44px}.community-menu .community-form label{font-size:12px}
.community-overflow:not([open])>.community-menu{display:none}.community-page :is(button,summary,a):focus-visible{outline:2px solid var(--pixel-cyan);outline-offset:3px}
.community-overflow[data-up=true]>.community-menu{inset-block-start:auto;inset-block-end:calc(100% + 4px)}
.community-page .community-filters{gap:10px;border:0;padding:0}.community-filters label{font-size:12px;flex:0 1 170px;min-width:120px;gap:3px}.community-filters label:last-of-type{flex:1 1 180px}.community-filters .community-follow{margin-inline-start:0}
.community-page .community-composer{display:grid;grid-template-columns:44px minmax(0,1fr) auto;column-gap:16px;row-gap:10px;padding:18px;border-width:1px}
.community-composer-identity{grid-column:1;grid-row:1;display:block;margin:0}.community-composer-identity strong{display:none}.community-composer-avatar{width:44px;height:44px;box-shadow:var(--pixel-edge)}
.community-composer-trigger{grid-column:2 / -1;min-height:48px!important}.community-compose-body{grid-column:2 / -1;gap:10px}.community-compose-types{grid-column:2;gap:8px;align-self:center}.community-compose-actions{grid-column:3;gap:8px;align-self:center}
.app .community-page .community-compose-types button{display:inline-flex;align-items:center;gap:7px;padding:6px 10px!important;font-size:13px!important;box-shadow:none!important}
.community-compose-body textarea{min-height:88px}.community-compose-body label{font:13px Arial,sans-serif}.community-compose-body summary{font-size:13px}.community-compose-helper{font:12px Arial,sans-serif;line-height:1.5}.community-compose-actions .community-compose-icon{order:-1;width:44px;padding:8px!important;display:grid;place-items:center}
.community-compose-more>.secondary{margin:8px 8px 8px 0}.community-submissions>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--betooth-light);font-size:13px}.community-submissions .community-card{margin-block:8px}
.community-page .community-post{padding:18px 20px;border-width:1px;box-shadow:none}.community-post>header.community-post-head{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:14px;align-items:start}.community-author{display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;min-width:0;font:14px Arial,sans-serif;line-height:1.5}.community-author>strong{font-size:15px;color:var(--text-primary)}.community-author time{font-size:12px;color:var(--betooth-light)}
.community-kind{font-size:12px;color:var(--pixel-cyan);padding:1px 7px;border:1px solid var(--border-subtle);background:var(--bg-panel)}.community-kind[data-kind=discussion]{color:var(--betooth-orange)}.community-kind[data-kind=question]{color:var(--betooth-light)}.community-post .community-overflow>summary{border:0;font-size:22px;padding:0}
.community-page .community-post>h3{margin:8px 0 6px 58px;margin-inline-start:58px;font:700 18px/1.4 Arial,sans-serif}.community-post>.community-post-content{margin:0;margin-inline-start:58px;font:15px/1.65 Arial,sans-serif;white-space:pre-wrap}.community-post :is(.community-post-actions,.community-attachment,.community-content-link){margin-inline-start:58px}.community-card .community-post-actions{margin-top:10px;gap:18px}
.app .community-page .community-text-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:6px 4px!important;min-height:44px;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--betooth-light)!important;font-size:13px!important}.app .community-page .community-text-action:hover,.app .community-page .community-text-action[aria-pressed=true]{color:var(--pixel-cyan)!important;background:var(--bg-hover)!important}
.app .community-page .community-attachment{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:4px 10px;text-align:start;align-items:center;width:min(440px,calc(100% - 58px));padding:10px 12px!important;margin-top:10px;background:var(--bg-panel)!important;border:1px solid var(--border-subtle)!important;box-shadow:none!important;min-height:64px}.community-attachment>.community-icon{grid-row:1 / span 2}.community-attachment>strong{overflow-wrap:anywhere;font:700 13px/1.4 Arial,sans-serif}.community-attachment>small{grid-column:2;font-size:12px}.community-attachment>span{grid-column:3;grid-row:1 / span 2;font-size:12px;color:var(--pixel-cyan)}
.community-content-link{margin-block:10px;font-size:12px}.community-post .community-comments[hidden]{display:none}.community-comments{margin-top:12px;padding-top:12px;border-width:1px}.community-comment{padding:10px 12px;border-inline-start-width:1px}.community-comment-head{display:flex;gap:10px;align-items:center;font:700 13px Arial,sans-serif}.community-comment-head .community-avatar{width:30px;height:30px;font-size:11px}.community-comment-head .community-overflow{margin-inline-start:auto}.community-comment-head .community-overflow>summary{min-height:44px;min-width:44px}.community-comment p{margin:4px 0 0;font:14px/1.6 Arial,sans-serif}.community-comment-composer{display:flex;align-items:end;gap:10px}.community-comment-composer label{display:grid;gap:4px;flex:1;min-width:0;font:12px Arial,sans-serif}.community-inline-reply{margin-block:8px}
.community-compose-footer{grid-column:2 / -1;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.community-compose-footer>.community-compose-actions{margin-inline-start:auto}.app .community-page .community-composer-trigger{text-align:start!important;justify-content:flex-start!important;font:15px/1.5 Arial,sans-serif!important}.community-icon{color:var(--pixel-cyan)}.community-page .community-post>h3{margin-top:-6px}
.community-identity-note{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.community-empty-state{display:grid;justify-items:center;align-content:center;text-align:center;min-height:160px;padding:24px;gap:8px}.community-empty-state>.community-icon{width:32px;height:32px;color:var(--betooth-orange)}.community-empty-state h3{margin:0;font-size:18px}.community-empty-state p{margin:0;font-size:14px;color:var(--betooth-light)}
@media(max-width:1050px){.community-page .community-composer{grid-template-columns:44px minmax(0,1fr)}.community-compose-types{grid-column:2}.community-compose-actions{grid-column:2;justify-content:flex-end}.community-personal{margin-inline-start:0}.community-hero-mark{display:none}}
@media(max-width:640px){.community-hero{min-height:82px}.community-hero p{font-size:14px}.community-page .community-tabs{gap:6px}.app .community-page .community-tabs button{flex:1 1 110px}.community-personal{width:100%}.community-personal>summary{justify-content:flex-start}.community-filters label{flex:1 1 120px;min-width:0}.community-page .community-composer{padding:12px;column-gap:10px}.community-compose-types,.community-compose-actions,.community-compose-body{grid-column:1 / -1}.community-composer-identity{grid-row:1}.community-composer-trigger{grid-column:2}.community-compose-types button{flex:1 1 auto}.community-compose-actions{justify-content:flex-end}.community-compose-actions button{flex:none}.community-page .community-post{padding:14px 12px}.community-post>header.community-post-head{gap:10px}.community-page .community-post>h3,.community-post>.community-post-content,.community-post :is(.community-post-actions,.community-attachment,.community-content-link){margin-inline-start:0}.community-page .community-post>h3{margin-left:0;font-size:17px}.community-author>strong{font-size:14px}.community-author .community-badge{font-size:11px}.community-card .community-post-actions{gap:12px}.app .community-page .community-attachment{width:100%;grid-template-columns:24px minmax(0,1fr)}.community-attachment>span{grid-column:2;grid-row:3}.community-comment-composer{gap:6px}.community-comment-composer button{padding-inline:10px!important}.community-menu{max-width:calc(100vw - 36px)}}
@media(max-width:640px){.community-compose-footer{grid-column:1 / -1;width:100%}.community-page .community-post>h3{margin-top:8px}.community-compose-types{width:100%;gap:6px}.app .community-page .community-compose-types button{flex:1 1 0;min-width:0;gap:4px;padding:6px!important;font-size:11px!important}.community-compose-types .community-icon{width:16px;height:16px}.community-page .community-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.community-personal{width:auto}.app .community-page .community-tabs button{font-size:11px!important;gap:5px;padding-inline:6px!important}.community-personal>summary{font-size:12px}}
.community-page .community-follow[hidden]{display:none!important}
.community-avatar .profile-avatar{width:100%!important;height:100%!important;min-width:0;border:0!important;box-shadow:none!important;border-radius:50%!important;overflow:hidden!important}
.community-page .community-composer--post{grid-template-columns:minmax(0,1fr);gap:12px}
.community-composer--post .community-composer-identity{grid-column:1;grid-row:auto;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.community-composer--post .community-composer-identity strong{display:block;min-width:0;flex:none;font:700 14px/1.4 Arial,sans-serif;overflow-wrap:anywhere}
.community-composer--post .community-compose-body{grid-column:1;min-width:0}
.community-composer--post .community-compose-body>label{font-size:0}
.community-composer--post textarea{width:100%;min-height:96px;font:15px/1.6 Arial,sans-serif;box-sizing:border-box;resize:vertical}
.community-composer--post .community-compose-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;grid-column:auto}
.community-compose-links{min-width:0}.community-compose-links label{display:grid;gap:4px;margin-block:8px}
.community-post>.community-post-content{margin-block-start:12px}
.community-resource-upload>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--pixel-cyan)}
.community-resource-upload .community-form{max-width:100%;box-sizing:border-box}


/* ==========================================================================
   MODERN DENTAL COMMUNITY POLISH & PUBLISHING EXPERIENCE
   ========================================================================== */
.app #pageMount > .page.community-page {
  max-width: 1060px;
  margin-inline: auto;
  padding: 0 0 48px;
}

/* Hero Header */
.community-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 110px;
  padding: 28px 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 36, 45, 0.95) 0%, rgba(23, 56, 71, 0.9) 55%, rgba(14, 27, 34, 0.95) 100%);
  border: 1px solid rgba(45, 212, 191, 0.28);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.community-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.community-hero h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: white;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.community-hero p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.95);
  margin: 0;
  max-width: 65ch;
}

/* Tabs Bar */
.community-page .community-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(16, 36, 45, 0.65);
  border: 1px solid rgba(143, 174, 184, 0.18);
  backdrop-filter: blur(8px);
  margin-bottom: 16px;
}

.app .community-page .community-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px !important;
  font-size: 14px !important;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.9);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.app .community-page .community-tabs button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.app .community-page .community-tabs [aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22) 0%, rgba(22, 54, 67, 0.85) 100%) !important;
  border-color: rgba(45, 212, 191, 0.45) !important;
  color: var(--pixel-cyan) !important;
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.2) !important;
}

/* Personal Menu Dropdown */
.community-personal > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(143, 174, 184, 0.2);
  color: rgba(203, 213, 225, 0.9);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.community-personal > summary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(45, 212, 191, 0.35);
}

.community-menu {
  background: rgba(16, 36, 45, 0.97);
  border: 1px solid rgba(143, 174, 184, 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  padding: 8px;
}

.app .community-page .community-menu > button {
  padding: 10px 14px !important;
  border-radius: 8px;
  color: rgba(226, 232, 240, 0.9) !important;
  font-size: 13px !important;
  font-weight: 700;
  transition: all 0.15s ease;
}

.app .community-page .community-menu > button:hover {
  background: rgba(45, 212, 191, 0.14) !important;
  color: var(--pixel-cyan) !important;
}

/* Filters Strip */
.community-page .community-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(14, 28, 35, 0.6);
  border: 1px solid rgba(143, 174, 184, 0.18);
  margin-bottom: 16px;
}

.community-filters label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.85);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.community-page .community-filters input,
.community-page .community-filters select {
  background: rgba(10, 22, 28, 0.8);
  border: 1px solid rgba(143, 174, 184, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  font-size: 13px;
  transition: border-color 0.16s ease;
}

.community-page .community-filters input:focus-visible,
.community-page .community-filters select:focus-visible {
  border-color: var(--pixel-cyan);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2);
  outline: none;
}

.community-filters .community-follow {
  background: rgba(45, 212, 191, 0.14) !important;
  border: 1px solid rgba(45, 212, 191, 0.35) !important;
  color: var(--pixel-cyan) !important;
  border-radius: 8px;
  font-weight: 800;
  padding: 8px 16px !important;
  align-self: flex-end;
}

/* Modern Composer Card */
.community-page .community-composer--post {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(19, 36, 46, 0.95) 0%, rgba(14, 27, 34, 0.95) 100%);
  border: 1px solid rgba(45, 212, 191, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}

/* Author Identity in Composer */
.community-composer--post .community-composer-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}

.community-composer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  border: 2px solid rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.25);
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(23, 56, 71, 0.95) 0%, rgba(14, 27, 34, 0.95) 100%);
  color: var(--pixel-cyan);
  font-weight: 800;
  overflow: hidden !important;
  position: relative;
  flex: none;
}

.community-composer--post .community-composer-identity strong {
  display: block;
  flex: none;
  font-size: 15px;
  font-weight: 800;
  color: white;
  line-height: 1.3;
}

.community-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.32);
  color: var(--pixel-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Textarea in Composer */
.community-composer--post textarea {
  width: 100%;
  min-height: 104px;
  border-radius: 12px;
  background: rgba(10, 22, 28, 0.75);
  border: 1px solid rgba(143, 174, 184, 0.25);
  padding: 16px 18px;
  color: white;
  font-size: 15px;
  line-height: 1.65;
  box-sizing: border-box;
  resize: vertical;
  transition: all 0.18s ease;
}

.community-composer--post textarea:focus-visible {
  border-color: var(--pixel-cyan);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
  outline: none;
}

.community-composer--post textarea::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

/* Link Details in Composer */
.community-compose-links {
  border-radius: 10px;
  background: rgba(10, 22, 28, 0.5);
  border: 1px dashed rgba(143, 174, 184, 0.22);
  padding: 8px 14px;
  margin-top: 4px;
}

.community-compose-links summary {
  color: var(--pixel-cyan);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}

.community-compose-links label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.85);
  margin-block: 8px;
}

.community-compose-links input {
  background: rgba(10, 22, 28, 0.8);
  border: 1px solid rgba(143, 174, 184, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  font-size: 13px;
}

/* Composer Actions Bar */
.community-compose-links,
.community-compose-icon {
  display: none !important;
}

.community-compose-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.community-compose-actions .community-compose-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(143, 174, 184, 0.2);
  color: var(--pixel-cyan);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.16s ease;
}

.community-compose-actions .community-compose-icon:hover {
  background: rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.4);
}

.community-compose-actions button.secondary {
  border-radius: 10px;
  padding: 10px 18px !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(143, 174, 184, 0.2);
  color: rgba(203, 213, 225, 0.85);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.community-compose-actions button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.community-compose-actions button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 11px 26px !important;
  background: linear-gradient(135deg, rgba(255, 158, 68, 1) 0%, rgba(245, 124, 0, 1) 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 124, 0, 0.38);
  transition: all 0.18s ease;
}

.community-compose-actions button.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 124, 0, 0.55);
  filter: brightness(1.08);
}

.community-compose-actions button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Community Post Cards */
.community-page .community-card.community-post {
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 33, 41, 0.95) 0%, rgba(14, 26, 32, 0.95) 100%);
  border: 1px solid rgba(143, 174, 184, 0.18);
  padding: 22px 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: all 0.2s ease;
}

.community-page .community-card.community-post:hover {
  border-color: rgba(45, 212, 191, 0.32);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.community-post > header.community-post-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 14px;
  align-items: center;
}

.community-post .community-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  border: 2px solid rgba(45, 212, 191, 0.45);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.18);
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(23, 56, 71, 0.95) 0%, rgba(14, 27, 34, 0.95) 100%);
  color: var(--pixel-cyan);
  font-weight: 800;
  overflow: hidden !important;
  position: relative;
  flex: none;
}

/* Comprehensive Avatar Frame & Portrait Scaling across Community */
.community-avatar {
  border-radius: 50% !important;
  overflow: hidden !important;
  position: relative;
}

.community-avatar .profile-avatar,
.community-composer-avatar .profile-avatar {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

/* Scaling: character fills the avatar circle naturally without aspect ratio distortion */
.community-avatar .onboard-portrait,
.community-composer-avatar .onboard-portrait {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 1.5 / 1;
  transform: translateX(-50%) scale(1.42);
  transform-origin: center 40%;
  image-rendering: pixelated;
}

.community-avatar .profile-avatar img,
.community-composer-avatar .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.community-author > strong {
  font-size: 16px;
  font-weight: 800;
  color: white;
}

.community-author time {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
}

.community-post > .community-post-content {
  margin-block-start: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.95);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/* Post Actions (Helpful, Comment, Save) */
.community-card .community-post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(143, 174, 184, 0.12);
}

.app .community-page .community-text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(143, 174, 184, 0.18) !important;
  color: rgba(148, 163, 184, 0.9) !important;
  font-size: 13px !important;
  font-weight: 700;
  min-height: 40px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.app .community-page .community-text-action:hover {
  background: rgba(45, 212, 191, 0.12) !important;
  border-color: rgba(45, 212, 191, 0.38) !important;
  color: white !important;
  transform: translateY(-1px);
}

/* Active Reactions */
.app .community-page .community-text-action[aria-pressed="true"] {
  background: rgba(45, 212, 191, 0.18) !important;
  border-color: rgba(45, 212, 191, 0.5) !important;
  color: var(--pixel-cyan) !important;
  box-shadow: 0 2px 10px rgba(45, 212, 191, 0.2) !important;
}

/* Comment Thread & Composer */
.community-comments {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(143, 174, 184, 0.15);
  display: grid;
  gap: 12px;
}

.community-comment {
  border-radius: 12px;
  background: rgba(10, 22, 28, 0.55);
  border: 1px solid rgba(143, 174, 184, 0.15);
  border-inline-start: 3px solid var(--pixel-cyan);
  padding: 14px 16px;
}

.community-comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: white;
}

.community-comment-head .community-avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.4);
}

.community-comment p {
  color: rgba(203, 213, 225, 0.95);
  font-size: 14px;
  line-height: 1.6;
  margin: 6px 0 0;
}

.community-comment-composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.community-comment-composer label {
  flex: 1;
  min-width: 0;
}

.community-comment-composer input {
  background: rgba(10, 22, 28, 0.8);
  border: 1px solid rgba(143, 174, 184, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  color: white;
  font-size: 14px;
}

.community-comment-composer input:focus-visible {
  border-color: var(--pixel-cyan);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2);
  outline: none;
}

.community-comment-composer button.primary {
  padding: 10px 20px !important;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 158, 68, 1) 0%, rgba(245, 124, 0, 1) 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.community-comment-composer button.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 124, 0, 0.4);
}

/* Resource Attachment Card */
.app .community-page .community-attachment {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(16, 36, 45, 0.75) 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  padding: 12px 18px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.18s ease;
}

.app .community-page .community-attachment:hover {
  border-color: rgba(239, 68, 68, 0.55) !important;
  transform: translateY(-1px);
}

.community-attachment > strong {
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.community-attachment > span {
  color: var(--pixel-cyan);
  font-weight: 800;
  font-size: 12px;
}

/* Empty State Card */
.community-empty-state {
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 36, 45, 0.6) 0%, rgba(13, 27, 33, 0.7) 100%);
  border: 1px dashed rgba(143, 174, 184, 0.25);
  padding: 40px 24px;
  text-align: center;
}

.community-empty-state h3 {
  color: white;
  font-size: 20px;
  font-weight: 800;
}

.community-empty-state p {
  color: rgba(148, 163, 184, 0.85);
  font-size: 14px;
  max-width: 48ch;
  margin-inline: auto;
}

.community-empty-state button {
  border-radius: 10px;
  padding: 10px 22px !important;
  background: rgba(45, 212, 191, 0.14) !important;
  border: 1px solid rgba(45, 212, 191, 0.4) !important;
  color: var(--pixel-cyan) !important;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.community-empty-state button:hover {
  background: var(--pixel-cyan) !important;
  color: rgba(10, 22, 28, 1) !important;
  transform: translateY(-2px);
}

/* Locked Community Card */
.community-page .community-locked {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 36, 45, 0.95) 0%, rgba(13, 27, 33, 0.95) 100%);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 32px 36px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.community-page .community-locked h3 {
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.community-page .community-locked p {
  color: rgba(203, 213, 225, 0.9);
  font-size: 15px;
}


/* Dental Community Hero Badges & Topic Starters */
.community-hero-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.community-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--pixel-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.community-hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 158, 68, 0.12);
  border: 1px solid rgba(255, 158, 68, 0.28);
  color: var(--betooth-orange);
  font-size: 11px;
  font-weight: 800;
}

/* Quick Topic Starter Pills in Composer */
.community-topic-starters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 2px;
}

.community-starter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px !important;
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.08) !important;
  border: 1px solid rgba(45, 212, 191, 0.25) !important;
  color: rgba(203, 213, 225, 0.9) !important;
  font-size: 12px !important;
  font-weight: 700;
  cursor: pointer;
  min-height: 32px !important;
  transition: all 0.15s ease;
}

.community-starter-pill:hover {
  background: rgba(45, 212, 191, 0.18) !important;
  border-color: var(--pixel-cyan) !important;
  color: white !important;
  transform: translateY(-1px);
}

.community-plus-badge{background:var(--surface-orange)!important;color:var(--betooth-orange)!important;border-color:var(--betooth-orange-line)!important;font-weight:700}
.community-medals-strip{display:inline-flex;align-items:center;gap:4px;margin-inline-start:4px}
@media (max-width: 640px) {
  .community-comments { grid-template-columns: minmax(0, 1fr); }
  .community-comment { min-width: 0; overflow-wrap: anywhere; }
  .community-comment-head { flex-wrap: wrap; }
  .community-comment-head .community-avatar { flex-shrink: 0; }
  .community-comment-head .community-author { flex: 1 1 100px; }
}
.community-medal-chip{display:inline-flex;align-items:center;gap:3px;padding:1px 6px;border-radius:var(--radius-pill);font-size:11px;font-weight:600;background:var(--bg-panel);border:1px solid var(--line);color:var(--text-primary)}
.community-medal-chip.medal-diamond{border-color:var(--border-active);color:var(--text-primary)}
.community-medal-chip.medal-gold{border-color:var(--betooth-orange-line);color:var(--betooth-orange)}
.community-medal-chip.medal-silver{border-color:var(--betooth-muted);color:var(--text-secondary)}
