/* Community presentation belongs to the theme. All components stay namespaced. */
.opcm-app {
  --opcm-green: var(--op-accent, #a3ff12);
  --opcm-cyan: #00eaff;
  --opcm-purple: var(--op-violet, #7545ff);
  --opcm-magenta: var(--op-magenta, #ff23d8);
  --opcm-bg: var(--op-bg, #090b10);
  --opcm-surface: var(--op-panel, #10131c);
  --opcm-line: var(--op-line, #292c3b);
  --opcm-ink: var(--op-ink, #f1f2f8);
  --opcm-muted: var(--op-muted, #a7aabd);
  box-sizing: border-box;
  color: var(--opcm-ink);
  font: 400 15px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  margin: 24px 0;
  isolation: isolate;
  overflow-wrap: anywhere;
}
.opcm-app *, .opcm-app *::before, .opcm-app *::after { box-sizing: border-box; }
.opmn-skin .entry-content .opcm-app a { color: var(--opcm-green); text-decoration: none; }
.opcm-app a:hover { text-decoration: underline; }
.opcm-app a:focus-visible, .opcm-app button:focus-visible,
.opcm-app input:focus-visible, .opcm-app textarea:focus-visible,
.opcm-app select:focus-visible, .opcm-app summary:focus-visible { outline: 2px solid var(--opcm-cyan); outline-offset: 3px; }
.opmn-skin .entry-content .opcm-app :is(h2,h3,h4) { color: var(--opcm-ink); font-family: inherit; line-height: 1.3; text-transform: none; letter-spacing: -.025em; }
.opmn-skin .entry-content .opcm-app h2 { font-size: clamp(23px, 3vw, 32px); margin: 0 0 14px; }
.opmn-skin .entry-content .opcm-app h3 { font-size: 19px; margin: 0 0 12px; }
.opmn-skin .entry-content .opcm-app h4 { font-size: 16px; margin: 0 0 10px; }
.opmn-skin .entry-content .opcm-app p { margin: 0 0 16px; color: inherit; }
.opcm-app section + section { margin-top: 28px; }
.opcm-app .opcm-grid section { margin-top: 0; }
.opmn-skin .entry-content .opcm-app .opcm-muted, .opcm-app small { color: var(--opcm-muted); font-size: 13px; line-height: 1.6; }
.opcm-app .opcm-eyebrow { display: block; color: var(--opcm-green); font-size: 11px; letter-spacing: .14em; font-weight: 750; text-transform: uppercase; margin-bottom: 12px; }
.opcm-intro, .opcm-welcome {
  position: relative;
  padding: clamp(22px, 3vw, 32px) 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--opcm-line);
  margin-bottom: 28px;
}
.opcm-intro::before, .opcm-welcome::before { content: ''; display: block; width: 56px; height: 3px; border-radius: 4px; background: linear-gradient(90deg, var(--opcm-green), var(--opcm-magenta)); margin-bottom: 22px; }
.opmn-skin .entry-content .opcm-app .opcm-intro p, .opmn-skin .entry-content .opcm-app .opcm-welcome > p { max-width: 670px; color: var(--opcm-muted); }
.opcm-app-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.opcm-app-header > div, .opcm-profile-header { display: flex; align-items: center; gap: 16px; }
.opcm-app-header > a { flex-shrink: 0; font-size: 13px; color: var(--opcm-muted); }
.opcm-avatar { display: inline-grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid #786390; border-radius: 15px; background: linear-gradient(135deg, #7545ff45, #ff23d826); color: var(--opcm-green); font-size: 26px; }
.opcm-profile-header { align-items: flex-start; padding: 16px 0; }
.opcm-profile-header .opcm-avatar { width: 72px; height: 72px; flex-basis: 72px; font-size: 38px; }
.opcm-nav { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--opcm-line); }
.opcm-nav a { display: inline-flex; padding: 9px 13px; border-radius: 8px; color: var(--opcm-muted); border: 1px solid transparent; font-size: 13px; font-weight: 650; }
.opmn-skin .entry-content .opcm-app .opcm-nav a { color: var(--opcm-muted); }
.opcm-nav a:hover { background: var(--opcm-surface); color: var(--opcm-ink); text-decoration: none; }
.opcm-nav a.is-active { color: var(--opcm-green); background: #a3ff1210; border-color: #a3ff1255; }
.opmn-skin .entry-content .opcm-app .opcm-nav a:is(:hover,.is-active) { color: var(--opcm-green); }
.opcm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); align-items: start; gap: 18px; margin: 20px 0; }
.opcm-account-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.opcm-card { min-width: 0; border: 1px solid var(--opcm-line); border-radius: 13px; background: var(--opcm-surface); overflow: hidden; }
.opcm-card-body { padding: clamp(20px, 2.5vw, 30px); }
.opcm-account-grid > .opcm-card { border-top: 2px solid var(--opcm-purple); }
.opcm-account-grid > .opcm-card:first-child { border-top-color: var(--opcm-green); }
.opcm-post-card { height: 100%; }
.opcm-post-card .opcm-card-body { padding: 18px; }
.opmn-skin .entry-content .opcm-app .opcm-post-card h3 a { color: var(--opcm-ink); }
.opmn-skin .entry-content .opcm-app .opcm-post-card h3 { font-size: 17px; line-height: 1.4; }
.opcm-cover { display: block; position: relative; aspect-ratio: 16 / 10; background: var(--opcm-bg); overflow: hidden; }
.opmn-skin .entry-content .opcm-app .opcm-cover img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border: 0; }
.opcm-cover-placeholder { display: grid; height: 100%; place-items: center; font-size: 56px; color: var(--opcm-purple); background: radial-gradient(ellipse at center, #7545ff30, transparent 70%); }
.opcm-app .opcm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; max-width: 100%; gap: 7px; padding: 10px 16px; border: 1px solid var(--opcm-green); border-radius: 8px; color: var(--op-accent-ink, #101404); background: var(--opcm-green); box-shadow: none; font-family: inherit; font-size: 13px; line-height: 1.4; font-weight: 700; letter-spacing: 0; text-transform: none; text-align: center; text-decoration: none; cursor: pointer; }
.opcm-app .opcm-btn:hover { background: var(--opcm-green); color: var(--op-accent-ink, #101404); text-decoration: none; box-shadow: inset 0 0 0 2px #ffffff30; }
.opcm-app .opcm-btn-secondary { background: var(--opcm-bg); border-color: var(--opcm-line); color: var(--opcm-ink); }
.opcm-app .opcm-btn-secondary:hover { background: var(--opcm-surface); border-color: var(--opcm-purple); color: var(--opcm-ink); }
.opcm-app .opcm-btn.is-active { background: #a3ff1218; color: var(--opcm-green); }
/* Keep action contrast when a theme forces its accent on all content links. */
.opcm-app .opcm-btn:not(.opcm-btn-secondary):not(.is-active) { color: var(--op-accent-ink, #101404) !important; }
.opcm-app .opcm-btn.opcm-btn-secondary { color: var(--opcm-ink) !important; }
.opcm-app .opcm-btn.is-active { color: var(--opcm-green) !important; }
.opcm-app .opcm-btn[disabled] { opacity: .5; cursor: default; }
.opcm-app .opcm-field { display: flex; flex-direction: column; align-items: stretch; gap: 7px; margin: 0 0 18px; font-size: 13px; font-weight: 600; color: var(--opcm-ink); }
.opcm-field small { font-weight: 400; }
.opcm-app input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.opcm-app textarea, .opcm-app select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; margin: 0; background: var(--opcm-bg); border: 1px solid var(--opcm-line); border-radius: 7px; color: var(--opcm-ink); font: inherit; font-size: 14px; line-height: 1.5; box-shadow: none; color-scheme: dark; }
.opcm-app input:autofill { box-shadow: 0 0 0 1000px var(--opcm-bg) inset; color: var(--opcm-ink); }
.opcm-app input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--opcm-bg) inset; -webkit-text-fill-color: var(--opcm-ink); caret-color: var(--opcm-ink); }
.opcm-app textarea { resize: vertical; }
.opcm-app input::placeholder, .opcm-app textarea::placeholder { color: #8b93a8; opacity: 1; }
.opcm-app select option { background: var(--opcm-bg); color: var(--opcm-ink); }
.opcm-app .opcm-check { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; color: var(--opcm-muted); font-size: 13px; font-weight: 400; }
.opcm-app input[type=checkbox], .opcm-app input[type=radio] { flex: 0 0 auto; accent-color: var(--opcm-green); width: 17px; height: 17px; margin: 3px 0 0; }
.opcm-check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 0 16px; }
.opcm-app fieldset { min-width: 0; padding: 16px; border: 1px solid var(--opcm-line); border-radius: 8px; margin: 20px 0; }
.opcm-app legend { color: var(--opcm-ink); font-size: 14px; font-weight: 650; padding: 0 7px; }
.opcm-actions, .opcm-filters, .opcm-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
.opcm-actions .opcm-inline-form { display: inline-flex; margin: 0; }
.opcm-post-card .opcm-actions .opcm-btn { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.opcm-app .opcm-form { margin: 0; }
.opcm-status-form, .opcm-surprise { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 18px 0 !important; }
.opcm-status-form .opcm-field, .opcm-surprise .opcm-field { flex: 1 1 220px; margin: 0; }
.opcm-badge { display: inline-block; padding: 5px 10px; margin: 0 5px 8px 0; border-radius: 20px; border: 1px solid #7258ad; background: #7545ff17; color: #d7caff; font-size: 11px; line-height: 1.5; font-weight: 650; }
.opcm-app .opcm-notice { border-left: 3px solid var(--opcm-green); background: #a3ff120c; padding: 14px 16px; margin: 18px 0; border-radius: 0 8px 8px 0; color: var(--opcm-ink); }
.opcm-app .opcm-notice--error { border-color: #ff9aa4; background: #ff9aa40b; }
.opcm-notice p:last-child { margin-bottom: 0; }
.opcm-filters a { padding: 5px 10px; border: 1px solid var(--opcm-line); border-radius: 7px; color: var(--opcm-muted); font-size: 12px; }
.opcm-filters a[aria-current=page], .opcm-filters a.is-active { color: var(--opcm-green); border-color: #a3ff1255; }
.opcm-empty { padding: 26px; border: 1px dashed #41495f; border-radius: 12px; margin: 20px 0; color: var(--opcm-muted); }
.opcm-stack { display: grid; gap: 18px; margin: 20px 0; }
.opcm-stack > section + section { margin-top: 0; }
.opcm-app details { margin: 18px 0; }
.opcm-app details > summary { cursor: pointer; color: var(--opcm-ink); font-weight: 650; }
.opcm-app details[open] > summary { margin-bottom: 18px; }
.opcm-collection-match { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--opcm-line); }
.opcm-review { border-top: 1px solid var(--opcm-line); padding: 18px 0 0; margin: 18px 0; }
.opcm-review > p:first-child { color: #d7caff; }
.opcm-review details { border: 1px solid var(--opcm-line); border-radius: 8px; padding: 14px; }
.opcm-reviews { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--opcm-line); }
.opcm-tools { padding-top: 28px; border-top: 1px solid var(--opcm-line); }
.opmn-skin .entry-content .opcm-tools > h2 { font-size: 23px; }
.opcm-poll-result { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin: 15px 0; font-size: 13px; }
.opcm-poll-result strong { color: var(--opcm-green); }
.opcm-poll-result meter { grid-column: 1 / -1; display: block; width: 100%; height: 14px; border: 0; }
.opcm-poll-result meter::-webkit-meter-bar { background: #303449; border: 0; border-radius: 12px; }
.opcm-poll-result meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, var(--opcm-purple), var(--opcm-magenta)); }
.opcm-poll-result meter::-moz-meter-bar { background: var(--opcm-purple); }
@media (max-width: 600px) {
  .opcm-app { padding: 0; border-radius: 0; font-size: 14px; }
  .opcm-app .opcm-nav { gap: 5px; }
  .opcm-nav a { padding: 8px 9px; font-size: 12px; }
  .opcm-grid { grid-template-columns: minmax(0, 1fr); }
  .opcm-card-body { padding: 18px; }
  .opcm-intro, .opcm-welcome { padding: 20px 0; }
  .opcm-status-form > .opcm-btn, .opcm-surprise > .opcm-btn { width: 100%; }
  .opcm-app-header { align-items: flex-start; }
  .opcm-profile-header { flex-direction: column; }
}
/* The account area is a page, not a second miniature theme inside the page. */
body.opmn-skin.opcm-area .container-wrapper #primary { width: 100%; float: none; min-width: 0; padding-inline: 0; }
body.opmn-skin.opcm-area .container-wrapper #secondary { display: none; }
body.opmn-skin.opcm-area.page:not(.home) main.site-main { background: transparent; padding: 0; box-shadow: none; border: 0; }
body.opmn-skin.opcm-area .entry-content-wrap { background: transparent; padding: 0; }
body.opmn-skin.opcm-area .entry-content { margin-top: 18px; }
body.opmn-skin.opcm-area .entry-header .entry-title { font-size: clamp(26px, 3vw, 36px); margin: 0; }
body.opmn-skin.opcm-area .opcm-app { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .opcm-app * { scroll-behavior: auto; transition: none; } }
