/* Original Community app; all rules are scoped to its practice view. */
#community-view {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: block;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: #f5f4ed;
  color: #173a35;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  padding: 10px 12px 28px;
  box-sizing: border-box;
  isolation: isolate;
}
#community-view[hidden], #community-view [hidden] { display: none !important; }
#community-view *, #community-view *::before, #community-view *::after { box-sizing: border-box; }
#community-view *, #community-view { scrollbar-width: none; }
#community-view::-webkit-scrollbar, #community-view *::-webkit-scrollbar { display: none; width: 0; height: 0; }
#community-view h1, #community-view h2, #community-view h3, #community-view p, #community-view figure { margin: 0; }
#community-view h1 { font-size: 24px; font-weight: 750; letter-spacing: -.6px; line-height: 1.2; }
#community-view h2 { font-size: 22px; line-height: 1.25; padding-top: 6px; }
#community-view h3 { font-size: 17px; line-height: 1.3; }
#community-view small { font-size: 13px; color: #42615b; }
#community-view p, #community-view label, #community-view legend, #community-view h1, #community-view h2, #community-view h3, #community-view button, #community-view a { overflow-wrap: anywhere; }
#community-view button, #community-view a.community-button, #community-view select {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  border: 1px solid #b9cec4;
  border-radius: 12px;
  background: #fff;
  color: #16483d;
  padding: 10px 12px;
  font: inherit;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  touch-action: manipulation;
  white-space: normal;
  text-align: center;
  text-decoration: none;
}
#community-view button:hover, #community-view a:hover { background: #e9f2ec; }
#community-view button[aria-pressed="true"], #community-view button[aria-current="page"] { background: #d7ecdf; border-color: #1d6450; color: #153f34; }
#community-view button.community-primary { background: #215747; color: #fff; border-color: #215747; }
#community-view button.community-primary:hover { background: #153e32; }
#community-view button.community-danger { color: #8d2923; background: #fff5f0; border-color: #bd7d70; }
#community-view :focus-visible { outline: 3px solid #986300; outline-offset: 3px; }
#community-view .community-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 8px; padding: 6px 0 14px; border-bottom: 1px solid #c8d6cc; }
#community-view .community-brand { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
#community-view .community-brand h1 { overflow-wrap: normal; }
#community-view .community-logo { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #ee927e, #bb4e65); border-radius: 12px; width: 40px; height: 40px; flex: 0 0 40px; line-height: 1; box-shadow: 0 3px 8px #bb4e4320; }
#community-view .community-logo svg { width: 28px; height: 28px; }
#community-view #community-home { justify-self: start; }
#community-view .community-header .cpp-learn { margin: 0; justify-self: end; }
#community-view .community-safety { font-size: 12px; font-weight: 600; color: #3e6154; padding: 10px 0 4px; }
#community-view .community-status { font-size: 14px; padding: 8px 10px; margin: 8px 0; background: #e5efe4; border-left: 3px solid #397254; border-radius: 5px; }
#community-view .community-status:empty { display: none; }
#community-view .community-content { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#community-view .community-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding-top: 10px; }
#community-view .community-nav button { font-size: 13px; padding: 9px 4px; border-radius: 10px; }
#community-view .community-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 4px; border-radius: 9px; background: #a33e35; color: #fff; font-size: 12px; }
#community-view .community-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
#community-view .community-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; background: #fff; border: 1px solid #d5dfd4; border-radius: 18px; padding: 14px; box-shadow: 0 3px 12px #173a3507; }
#community-view .community-card .community-card { box-shadow: none; padding: 10px; border-radius: 12px; background: #f6f8f2; }
#community-view .community-post .community-row > button { flex: 1 1 45%; font-size: 14px; }
#community-view .community-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; background: #dcead4; border: 1px solid #b7c9a8; border-radius: 16px; font-size: 13px; font-weight: 750; color: #214e38; }
#community-view .community-author { flex: 1; min-width: 0; }
#community-view .community-tag { align-self: flex-start; font-size: 12px; padding: 5px 9px; border-radius: 6px; background: #f8ecd0; color: #694808; }
#community-view .community-post-text { white-space: pre-wrap; overflow-wrap: anywhere; }
#community-view .community-garden { border: 1px solid #c4d2b5; border-radius: 12px; overflow: hidden; background: #eff5da; }
#community-view .community-garden-art { position: relative; min-height: 125px; background: linear-gradient(170deg, #d6f1e4 0%, #e8f4e3 65%, #a4c286 66%, #78a472 100%); color: #997121; padding: 6px 20px; font-size: 35px; text-align: right; }
#community-view .community-garden-art span { display: block; font-size: 42px; text-align: center; line-height: 1.6; }
#community-view .community-garden figcaption { padding: 7px 10px; font-size: 12px; color: #34593b; }
#community-view form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
#community-view label, #community-view legend { font-weight: 600; }
#community-view textarea { width: 100%; min-height: 88px; padding: 11px; resize: vertical; font: inherit; line-height: 1.5; color: #173a35; background: #fffefa; border: 1px solid #849d90; border-radius: 10px; }
#community-view fieldset { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 10px; border: 1px solid #bccfc1; border-radius: 12px; }
#community-view legend { max-width: 100%; padding: 0 4px; line-height: 1.45; }
#community-view .community-choice { display: flex; align-items: center; gap: 10px; min-height: 48px; border: 1px solid #c7d7c8; border-radius: 10px; background: #f6f8f1; padding: 8px 10px; font-weight: 500; cursor: pointer; }
#community-view input[type="checkbox"], #community-view input[type="radio"] { flex: 0 0 24px; width: 24px; height: 24px; min-height: 24px; margin: 0; accent-color: #215747; cursor: pointer; }
#community-view select { width: 100%; text-align: left; }
#community-view a.community-button { display: flex; align-items: center; justify-content: center; }
#community-view .community-reply { background: #e8f1e7; border-radius: 12px; padding: 10px; white-space: pre-wrap; }
#community-view .cpp-coach { position: static; flex-shrink: 0; margin: 10px 0; width: 100%; max-height: none; overflow: visible; }
#community-view .cpp-coach p { white-space: normal; }
#community-view .cpp-done { position: static; background: transparent; backdrop-filter: none; margin-top: 16px; }
#community-view .cpp-done-sheet { max-height: none; overflow: visible; border-radius: 18px; }
@media (max-width: 360px) {
  #community-view { padding-left: 10px; padding-right: 10px; }
  #community-view .community-card { padding: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  #community-view *, #community-view { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
