/*
 * OPC community native mobile layer — v0.25.0-local
 * Loaded after the desktop styles so the desktop composition remains unchanged.
 */

.opc-mobile-home,
.opc-mobile-context-bar,
.opc-mobile-community-tools,
.opc-mobile-resource-tabs,
.opc-mobile-detail-note,
.opc-mobile-demand-tools,
.opc-mobile-demand-fab,
.opc-mobile-world-summary,
.opc-mobile-summit-details {
  display: none;
}

@media (max-width: 820px) {
  :root {
    --opc-mobile-header: 56px;
    --opc-mobile-dock: 66px;
    --opc-mobile-gutter: clamp(16px, 4.4vw, 22px);
    --opc-mobile-border: #e5e8ed;
    --opc-mobile-text: #16181a;
    --opc-mobile-muted: #5b667a;
    --opc-mobile-blue: #0052d9;
    --opc-mobile-bg: #f5f7fa;
    --opc-mobile-shadow: 0 8px 24px rgba(3, 27, 78, 0.07);
  }

  html {
    scroll-padding-top: calc(var(--opc-mobile-header) + env(safe-area-inset-top));
  }

  body {
    min-width: 320px;
    padding-bottom: 0;
    overflow-x: clip;
    background: var(--opc-mobile-bg);
    color: var(--opc-mobile-text);
  }

  .opc-page {
    min-width: 0;
    padding-bottom: calc(var(--opc-mobile-dock) + env(safe-area-inset-bottom));
    overflow-x: clip;
  }

  .opc-page img {
    max-width: 100%;
  }

  .opc-page button,
  .opc-page a,
  .opc-page input,
  .opc-page select {
    -webkit-tap-highlight-color: transparent;
  }

  .opc-page button:focus-visible,
  .opc-page a:focus-visible,
  .opc-page input:focus-visible,
  .opc-page select:focus-visible {
    outline: 3px solid rgba(0, 82, 217, 0.28);
    outline-offset: 2px;
  }

  .opc-page.opc-mobile-ready #main-content > section,
  .opc-page.opc-mobile-ready > #top {
    display: none;
  }

  .opc-page.opc-mobile-ready[data-mobile-view="home"] > #top,
  .opc-page.opc-mobile-ready[data-mobile-view="home"] #mobile-home,
  .opc-page.opc-mobile-ready[data-mobile-view="communities"] #communities,
  .opc-page.opc-mobile-ready[data-mobile-view="resources"] #resources,
  .opc-page.opc-mobile-ready[data-mobile-view="heat"] #heat,
  .opc-page.opc-mobile-ready[data-mobile-view="demands"] #demands,
  .opc-page.opc-mobile-ready[data-mobile-view="ideas"] #ideas,
  .opc-page.opc-mobile-ready[data-mobile-view="news"] #news,
  .opc-page.opc-mobile-ready[data-mobile-view="learning"] #resources,
  .opc-page.opc-mobile-ready[data-mobile-view="summit"] #summit {
    display: block;
  }

  .opc-page.opc-mobile-ready[data-mobile-dock-hidden="true"] {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .opc-page.opc-mobile-ready[data-mobile-header-hidden="true"] .opc-header,
  .opc-page.opc-mobile-ready[data-mobile-dock-hidden="true"] .opc-mobile-dock {
    display: none;
  }

  .opc-header.tcwf-static-header {
    position: sticky;
    z-index: 80;
    top: 0;
    display: block;
    height: calc(var(--opc-mobile-header) + env(safe-area-inset-top));
    min-height: calc(var(--opc-mobile-header) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid rgba(229, 232, 237, 0.95);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 12px rgba(3, 27, 78, 0.04);
    backdrop-filter: blur(16px);
  }

  .opc-header .tcwf-static-header__inner {
    width: 100%;
    height: var(--opc-mobile-header);
    min-height: var(--opc-mobile-header);
    gap: 10px;
    padding: 0 var(--opc-mobile-gutter);
  }

  .opc-header .opc-brand {
    flex: 0 0 auto;
    gap: 7px;
    min-width: 0;
  }

  .opc-header .opc-brand__logo {
    width: 25px;
    height: auto;
  }

  .opc-header .opc-brand__name {
    max-width: 104px;
    overflow: hidden;
    font-size: 14px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .opc-header .tcwf-static-menu,
  .opc-header .opc-primary-nav,
  .opc-header .opc-reading-progress {
    display: none !important;
  }

  .opc-header .opc-header-tools {
    display: flex !important;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    margin-left: 0;
  }

  .opc-header .opc-header-search {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr) 44px;
    max-width: 240px;
    min-width: 100px;
    height: 44px;
    margin: 0;
    padding: 0 2px 0 12px;
    border: 1px solid #dde3eb;
    border-radius: 22px;
    background: #f5f7fa;
  }

  .opc-header .opc-header-search label {
    display: none;
  }

  .opc-header .opc-header-search input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
  }

  .opc-header .opc-header-search .opc-icon-link,
  .opc-header .opc-icon-link {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
  }

  .opc-header .opc-header-tools > .opc-icon-link {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    flex: 0 0 46px;
    box-sizing: border-box;
    border: 1px solid var(--opc-mobile-border);
    background: #fff;
  }

  .opc-mobile-context-bar:not([hidden]) {
    position: sticky;
    z-index: 85;
    top: 0;
    display: grid;
    min-height: calc(var(--opc-mobile-header) + env(safe-area-inset-top));
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: env(safe-area-inset-top) var(--opc-mobile-gutter) 0;
    border-bottom: 1px solid var(--opc-mobile-border);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 12px rgba(3, 27, 78, 0.04);
    backdrop-filter: blur(16px);
  }

  .opc-mobile-context-bar > strong {
    overflow: hidden;
    font-size: 17px;
    line-height: 24px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .opc-mobile-context-bar button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
  }

  .opc-mobile-context-bar__actions {
    display: flex;
    gap: 2px;
  }

  .opc-mobile-context-search:not([hidden]) {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    height: 46px;
    margin-bottom: 10px;
    padding: 0 5px 0 14px;
    border: 1px solid #d9e0ea;
    border-radius: 23px;
    background: #f5f7fa;
  }

  .opc-mobile-context-search input {
    min-width: 0;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 14px;
  }

  .opc-mobile-context-search button {
    width: auto;
    min-width: 52px;
    height: 44px;
    padding: 0 12px;
    border-radius: 18px;
    background: var(--opc-mobile-blue);
    color: #fff;
    font-size: 13px;
  }

  .opc-mobile-dock {
    position: fixed;
    z-index: 100;
    inset: auto 0 0;
    display: grid;
    width: 100%;
    height: calc(var(--opc-mobile-dock) + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    padding: 5px max(8px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-right));
    border: 0;
    border-top: 1px solid rgba(218, 224, 233, 0.96);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 24px rgba(3, 27, 78, 0.07);
    backdrop-filter: blur(18px);
    transform: none;
  }

  .opc-mobile-dock a,
  .opc-mobile-dock button {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 4px 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6b7485;
    text-decoration: none;
  }

  .opc-mobile-dock a img,
  .opc-mobile-dock button img {
    width: 21px;
    height: 21px;
    opacity: 0.9;
  }

  .opc-mobile-dock a small,
  .opc-mobile-dock button small {
    font-size: 11px;
    font-weight: 500;
    line-height: 15px;
  }

  .opc-mobile-dock a[aria-current],
  .opc-mobile-dock button[aria-pressed="true"] {
    background: #edf5ff;
    color: var(--opc-mobile-blue);
  }

  .opc-mobile-dock a[aria-current] img,
  .opc-mobile-dock button[aria-pressed="true"] img {
    filter: invert(25%) sepia(98%) saturate(3318%) hue-rotate(211deg) brightness(85%) contrast(108%);
  }

  .opc-page .tcwf-section {
    padding: 28px 0 38px;
  }

  .opc-page .tcwf-section__inner {
    width: 100%;
    max-width: 680px;
    padding-inline: var(--opc-mobile-gutter);
  }

  .opc-page .tcwf-section__header {
    margin-bottom: 18px;
  }

  .opc-page .tcwf-section__title {
    font-size: 23px;
    line-height: 31px;
    letter-spacing: -0.02em;
  }

  .opc-page .tcwf-section__description {
    margin-top: 5px;
    font-size: 13px;
    line-height: 20px;
  }

  .opc-page .opc-meta-label {
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  /* Mobile home */
  .opc-solution-hero.opc-solution-hero--workbuddy {
    position: relative;
    height: 218px;
    min-height: 218px;
    overflow: hidden;
  }

  .opc-solution-hero.opc-solution-hero--workbuddy::after {
    background: linear-gradient(90deg, rgba(0, 16, 49, 0.9) 0%, rgba(0, 25, 73, 0.66) 58%, rgba(0, 27, 76, 0.28) 100%);
  }

  .opc-solution-hero.opc-solution-hero--workbuddy .tcwf-static-hero__background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 66% center;
  }

  .opc-solution-hero.opc-solution-hero--workbuddy .tcwf-solution-hero__inner {
    display: flex;
    width: 100%;
    height: 218px;
    min-height: 218px;
    align-items: center;
    padding: 22px var(--opc-mobile-gutter);
  }

  .opc-solution-hero.opc-solution-hero--workbuddy .tcwf-solution-hero__copy {
    max-width: 340px;
    margin: 0;
    text-align: left;
  }

  .opc-solution-hero.opc-solution-hero--workbuddy .opc-hero-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 18px;
  }

  .opc-solution-hero.opc-solution-hero--workbuddy .tcwf-solution-hero__copy h1,
  .opc-solution-hero.opc-solution-hero--workbuddy .tcwf-solution-hero__copy h1 span {
    margin: 0;
    font-size: clamp(27px, 7vw, 33px);
    line-height: 1.16;
    letter-spacing: -0.03em;
  }

  .opc-solution-hero.opc-solution-hero--workbuddy .tcwf-solution-hero__copy h1 span:last-child {
    margin-top: 3px;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0;
  }

  .opc-solution-hero.opc-solution-hero--workbuddy .tcwf-solution-hero__copy::after,
  .opc-solution-hero.opc-solution-hero--workbuddy .opc-solution-hero__copy,
  .opc-solution-hero.opc-solution-hero--workbuddy .opc-hero-entry-grid,
  .opc-solution-hero.opc-solution-hero--workbuddy .opc-hero-atmosphere {
    display: none;
  }

  .opc-solution-hero.opc-solution-hero--workbuddy .opc-hero-value-points {
    margin: 9px 0 0;
    font-size: 13px;
    line-height: 20px;
  }

  .opc-mobile-home {
    background: var(--opc-mobile-bg);
  }

  .opc-mobile-home__inner {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 16px var(--opc-mobile-gutter) 36px;
  }

  .opc-mobile-home-summit {
    position: relative;
    display: block;
    height: 166px;
    overflow: hidden;
    border-radius: 16px;
    background: #09275e;
    box-shadow: var(--opc-mobile-shadow);
    color: #fff;
    text-decoration: none;
  }

  .opc-mobile-home-summit > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
  }

  .opc-mobile-home-summit__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 18, 53, 0.9), rgba(4, 34, 91, 0.48) 72%, rgba(4, 34, 91, 0.18));
  }

  .opc-mobile-home-summit__copy {
    position: absolute;
    inset: 0;
    display: flex;
    max-width: 78%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 18px;
  }

  .opc-mobile-home-summit__copy small {
    font-size: 11px;
    line-height: 18px;
    letter-spacing: 0.06em;
  }

  .opc-mobile-home-summit__copy strong {
    margin-top: 4px;
    font-size: 19px;
    line-height: 27px;
  }

  .opc-mobile-home-summit__copy em {
    min-height: 36px;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 18px;
    background: var(--opc-mobile-blue);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
  }

  .opc-mobile-home-roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .opc-mobile-home-roles a {
    display: flex;
    min-width: 0;
    min-height: 104px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 11px 6px;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 14px;
    background: #fff;
    color: var(--opc-mobile-text);
    text-align: center;
    text-decoration: none;
  }

  .opc-mobile-home-roles img {
    width: 38px;
    height: 38px;
  }

  .opc-mobile-home-roles span {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }

  .opc-mobile-home-roles strong {
    font-size: 13px;
    line-height: 20px;
  }

  .opc-mobile-home-roles small {
    font-size: 10px;
    line-height: 15px;
    color: var(--opc-mobile-muted);
  }

  .opc-mobile-home-block {
    margin-top: 24px;
  }

  .opc-mobile-home-block > header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
  }

  .opc-mobile-home-block > header small {
    display: block;
    color: #8a94a6;
    font-size: 10px;
    line-height: 15px;
    letter-spacing: 0.08em;
  }

  .opc-mobile-home-block > header h2 {
    margin: 1px 0 0;
    font-size: 19px;
    line-height: 27px;
  }

  .opc-mobile-home-block > header > a {
    display: flex;
    min-height: 44px;
    align-items: center;
    color: var(--opc-mobile-blue);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }

  .opc-mobile-home-park-rail,
  .opc-mobile-summit-gallery {
    display: grid;
    grid-auto-columns: min(42vw, 176px);
    grid-auto-flow: column;
    gap: 10px;
    margin-inline: calc(var(--opc-mobile-gutter) * -1);
    padding-inline: var(--opc-mobile-gutter);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .opc-mobile-home-park-rail::-webkit-scrollbar,
  .opc-mobile-summit-gallery::-webkit-scrollbar,
  .opc-mobile-chip-rail::-webkit-scrollbar,
  .opc-mobile-resource-tabs::-webkit-scrollbar {
    display: none;
  }

  .opc-mobile-home-park-rail a {
    position: relative;
    height: 126px;
    overflow: hidden;
    border-radius: 13px;
    background: #d9e6f6;
    color: #fff;
    scroll-snap-align: start;
    text-decoration: none;
  }

  .opc-mobile-home-park-rail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .opc-mobile-home-park-rail span {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    padding: 28px 10px 9px;
    background: linear-gradient(transparent, rgba(4, 16, 42, 0.82));
  }

  .opc-mobile-home-park-rail strong {
    font-size: 13px;
    line-height: 19px;
  }

  .opc-mobile-home-park-rail small {
    font-size: 10px;
    line-height: 15px;
    color: rgba(255, 255, 255, 0.84);
  }

  .opc-mobile-home-events {
    overflow: hidden;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 14px;
    background: #fff;
  }

  .opc-mobile-home-events button {
    display: grid;
    width: 100%;
    min-height: 82px;
    grid-template-columns: 48px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
    color: var(--opc-mobile-text);
    text-align: left;
  }

  .opc-mobile-home-events button:last-child {
    border-bottom: 0;
  }

  .opc-mobile-home-events time {
    display: flex;
    width: 46px;
    height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf5ff;
    color: var(--opc-mobile-blue);
  }

  .opc-mobile-home-events time strong {
    font-size: 20px;
    line-height: 22px;
  }

  .opc-mobile-home-events time small {
    font-size: 10px;
    line-height: 15px;
  }

  .opc-mobile-home-events button > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }

  .opc-mobile-home-events em {
    color: var(--opc-mobile-blue);
    font-size: 10px;
    font-style: normal;
    line-height: 16px;
  }

  .opc-mobile-home-events button > span strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .opc-mobile-home-events button > span small {
    overflow: hidden;
    color: var(--opc-mobile-muted);
    font-size: 11px;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .opc-mobile-home-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .opc-mobile-home-quick {
    position: relative;
    display: grid;
    min-height: 108px;
    grid-template-columns: 28px minmax(0, 1fr);
    align-content: start;
    gap: 8px;
    overflow: hidden;
    padding: 14px 12px;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 14px;
    background: #fff;
    color: var(--opc-mobile-text);
    text-decoration: none;
  }

  .opc-mobile-home-quick > img {
    width: 24px;
    height: 24px;
    padding: 3px;
    border-radius: 7px;
    background: #edf5ff;
  }

  .opc-mobile-home-quick > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }

  .opc-mobile-home-quick strong {
    font-size: 13px;
    line-height: 19px;
  }

  .opc-mobile-home-quick small {
    margin-top: 2px;
    color: var(--opc-mobile-muted);
    font-size: 10px;
    line-height: 15px;
  }

  .opc-mobile-home-quick em {
    position: absolute;
    right: 10px;
    bottom: 9px;
    color: #8a94a6;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
  }

  /* Shared mobile controls */
  .opc-mobile-community-tools,
  .opc-mobile-demand-tools {
    display: block;
    margin-bottom: 20px;
  }

  .opc-mobile-context-search .tcwf-visually-hidden,
  .opc-mobile-community-tools .tcwf-visually-hidden,
  .opc-mobile-demand-tools .tcwf-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

  .opc-mobile-community-tools form,
  .opc-mobile-demand-tools form {
    display: grid;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 5px 0 13px;
    border: 1px solid #dce2ea;
    border-radius: 22px;
    background: #fff;
  }

  .opc-mobile-community-tools input,
  .opc-mobile-demand-tools input {
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
  }

  .opc-mobile-community-tools form button,
  .opc-mobile-demand-tools form button {
    min-width: 52px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 18px;
    background: var(--opc-mobile-blue);
    color: #fff;
    font-size: 12px;
  }

  .opc-mobile-chip-rail,
  .opc-mobile-resource-tabs,
  .opc-project-filters {
    display: flex;
    gap: 8px;
    margin: 10px calc(var(--opc-mobile-gutter) * -1) 0;
    padding: 0 var(--opc-mobile-gutter) 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .opc-mobile-chip-rail button,
  .opc-mobile-resource-tabs button,
  .opc-project-filters button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 20px;
    background: #fff;
    color: #4f5d75;
    font-size: 12px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .opc-mobile-chip-rail button[aria-pressed="true"],
  .opc-mobile-resource-tabs button[aria-pressed="true"],
  .opc-project-filters button[aria-pressed="true"] {
    border-color: var(--opc-mobile-blue);
    background: var(--opc-mobile-blue);
    color: #fff;
    font-weight: 600;
  }

  /* Community directory */
  #communities {
    background: var(--opc-mobile-bg);
  }

  #communities .tcwf-section__header {
    margin-bottom: 14px;
  }

  .opc-mobile-location-card {
    display: grid;
    width: 100%;
    min-height: 66px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #cdddf7;
    border-radius: 13px;
    background: #edf5ff;
    color: #16315e;
    text-align: left;
  }

  .opc-mobile-location-card > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }

  .opc-mobile-location-card strong {
    font-size: 12px;
    line-height: 18px;
  }

  .opc-mobile-location-card small {
    color: #5f6f89;
    font-size: 10px;
    line-height: 16px;
  }

  .opc-mobile-location-card em {
    color: var(--opc-mobile-blue);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
  }

  .opc-mobile-search-status {
    min-height: 18px;
    margin: 5px 2px 0;
    color: var(--opc-mobile-muted);
    font-size: 11px;
    line-height: 18px;
  }

  #communities .opc-community-grid {
    display: block;
  }

  #communities .opc-community-tier {
    margin-top: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #communities .opc-community-tier:first-child {
    margin-top: 0;
  }

  #communities .opc-community-tier__header,
  #communities .opc-community-runners__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  #communities .opc-community-tier__header h3,
  #communities .opc-community-runners__header h3 {
    font-size: 18px;
    line-height: 26px;
  }

  #communities .opc-community-tier__header p,
  #communities .opc-community-runners__header p,
  #communities .opc-community-tier__header > div:first-child > span,
  #communities .opc-community-runners__header > div:first-child > span {
    display: none;
  }

  #communities .opc-community-flagship-frame {
    display: block;
    width: 100%;
    margin: 0;
  }

  #communities .opc-community-flagship-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
  }

  #communities .opc-community-flagship-track {
    display: flex;
    gap: 12px;
  }

  #communities .opc-community-card--flagship {
    flex: 0 0 100%;
    min-width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--opc-mobile-shadow);
  }

  #communities .opc-community-card--flagship:hover {
    transform: none;
  }

  #communities .opc-community-card--flagship .opc-community-card__media {
    height: 156px;
    min-height: 156px;
  }

  #communities .opc-community-card--flagship .opc-community-card__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #communities .opc-community-card--flagship .opc-community-card__body {
    min-height: 164px;
    padding: 14px;
  }

  #communities .opc-community-card--flagship .opc-community-card__meta {
    font-size: 11px;
    line-height: 17px;
  }

  #communities .opc-community-card--flagship h3 {
    margin-top: 2px;
    font-size: 17px;
    line-height: 24px;
  }

  #communities .opc-community-card--flagship .opc-community-card__body > p:not(.opc-community-card__meta) {
    display: none;
  }

  #communities .opc-community-card--flagship .opc-tags {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    overflow: hidden;
  }

  #communities .opc-community-card--flagship .opc-tags li {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 4px 8px;
    font-size: 10px;
    line-height: 16px;
    white-space: nowrap;
  }

  #communities .opc-community-card--flagship .opc-tags li:nth-child(n + 3) {
    display: none;
  }

  #communities .opc-community-card--flagship .opc-card-footer {
    margin-top: 12px;
  }

  #communities .opc-community-card--flagship .opc-text-button {
    min-height: 44px;
  }

  #communities .opc-community-flagship-side {
    position: absolute;
    z-index: 5;
    top: 66px;
    display: grid;
    width: 44px;
    height: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0;
    border-radius: 22px;
    background: rgba(8, 20, 43, 0.7);
  }

  #communities .opc-community-flagship-side--prev {
    left: 6px;
  }

  #communities .opc-community-flagship-side--next {
    right: 6px;
  }

  #communities .opc-community-flagship-side::before {
    display: none;
  }

  #communities .opc-community-flagship-side > span {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #communities .opc-community-runners__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
  }

  #communities .opc-community-runners__controls {
    display: none;
  }

  #community-selected .opc-community-runners__viewport {
    overflow: visible;
  }

  #community-selected .opc-community-runners__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    transform: none !important;
  }

  #community-selected .opc-community-card {
    display: flex;
    width: auto;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    grid-column: auto;
    grid-template-columns: none;
    overflow: hidden;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: none;
  }

  #community-selected .opc-community-card[hidden] {
    display: none;
  }

  #community-selected .opc-community-card > img {
    display: block;
    width: 100%;
    height: 104px;
    min-height: 104px;
    object-fit: cover;
  }

  #community-selected .opc-community-card > div {
    min-height: 122px;
    padding: 10px;
  }

  #community-selected .opc-community-card > div > span {
    display: block;
    overflow: hidden;
    color: var(--opc-mobile-blue);
    font-size: 10px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #community-selected .opc-community-card > div > p {
    display: none;
  }

  #community-selected .opc-community-card h4 {
    display: -webkit-box;
    margin-top: 3px;
    overflow: hidden;
    font-size: 13px;
    line-height: 19px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #community-selected .opc-community-card footer {
    margin-top: 8px;
  }

  #community-selected .opc-community-card footer strong {
    display: none;
  }

  #community-selected .opc-community-card footer button {
    width: 100%;
    min-height: 44px;
    padding: 0 8px;
    border: 1px solid #ccdcf6;
    border-radius: 20px;
    background: #edf5ff;
    color: var(--opc-mobile-blue);
    font-size: 11px;
    white-space: normal;
  }

  #community-selected .opc-community-card__media {
    height: 104px;
  }

  #community-selected .opc-community-card__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #community-selected .opc-community-card__body {
    min-height: 120px;
    padding: 10px;
  }

  #community-selected .opc-community-card__meta,
  #community-selected .opc-community-card__body > p,
  #community-selected .opc-tags,
  #community-selected .opc-community-footer-views {
    display: none;
  }

  #community-selected .opc-community-card h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 19px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #community-selected .opc-card-footer {
    margin-top: 8px;
  }

  #community-selected .opc-text-button {
    width: 100%;
    min-height: 44px;
    padding: 0 8px;
    font-size: 11px;
  }

  #community-runners,
  #communities .opc-footnote {
    display: none !important;
  }

  /* Resource center */
  #resources {
    background: #fff;
  }

  #resources .tcwf-section__header {
    align-items: start;
  }

  #resources .tcwf-section__header > .tcwf-action {
    min-height: 44px;
    margin-top: 4px;
    padding: 0 12px;
    font-size: 11px;
  }

  .opc-mobile-resource-tabs {
    position: sticky;
    z-index: 20;
    top: calc(var(--opc-mobile-header) + env(safe-area-inset-top));
    display: flex;
    margin-top: -5px;
    margin-bottom: 18px;
    padding-top: 7px;
    padding-bottom: 7px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
  }

  #resources .opc-expert-library,
  #resources .opc-activity-hub,
  #resources .opc-course-heading,
  #resources .opc-resource-desktop {
    scroll-margin-top: 118px;
  }

  #resources .opc-subsection-heading,
  #resources .opc-course-heading,
  #resources .opc-activity-heading {
    align-items: end;
    margin-bottom: 10px;
  }

  #resources .opc-subsection-heading h3,
  #resources .opc-course-heading h3 {
    font-size: 18px;
    line-height: 26px;
  }

  #resources .opc-subsection-heading p,
  #resources .opc-course-heading p {
    display: none;
  }

  #resources .opc-carousel-controls button,
  #resources .opc-activity-arrow {
    min-width: 44px;
    min-height: 44px;
  }

  #resources .opc-expert-viewport {
    width: 100%;
    overflow: hidden;
  }

  #resources .opc-expert-track {
    align-items: start;
  }

  #resources .opc-expert-page {
    min-width: 100%;
  }

  #resources .opc-expert-page__grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-columns: min(82vw, 332px);
    grid-auto-flow: column;
    gap: 10px;
    padding: 2px 1px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
  }

  #resources .opc-expert-card {
    min-width: 0;
    min-height: 190px;
    padding: 14px;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 14px;
    box-shadow: none;
    scroll-snap-align: start;
  }

  #resources .opc-expert-card__identity {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }

  #resources .opc-expert-card__identity > img {
    width: 54px;
    height: 54px;
  }

  #resources .opc-expert-card h4 {
    font-size: 15px;
    line-height: 21px;
  }

  #resources .opc-expert-card__intro {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    font-size: 11px;
    line-height: 17px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #resources .opc-expert-topic {
    margin-top: 8px;
    padding: 7px 9px;
    font-size: 10px;
  }

  #resources .opc-expert-card footer {
    margin-top: 9px;
  }

  #resources .opc-expert-card footer > span {
    font-size: 10px;
  }

  #resources .opc-expert-card .opc-text-button {
    min-height: 44px;
  }

  #resources .opc-activity-hub {
    margin-top: 28px;
  }

  #resources .opc-activity-carousel-frame {
    display: block;
  }

  #resources .opc-activity-arrow {
    display: none;
  }

  #resources .opc-activity-viewport {
    width: calc(100% + var(--opc-mobile-gutter));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  #resources .opc-activity-grid {
    display: flex;
    gap: 10px;
    padding: 2px var(--opc-mobile-gutter) 8px 1px;
  }

  #resources .opc-activity-card {
    display: block;
    flex: 0 0 min(76vw, 300px);
    min-width: 0;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    scroll-snap-align: start;
  }

  #resources .opc-activity-card > img {
    width: 100%;
    height: 128px;
    object-fit: cover;
  }

  #resources .opc-activity-card > div {
    padding: 12px;
  }

  #resources .opc-activity-card h4 {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    font-size: 14px;
    line-height: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #resources .opc-activity-card p,
  #resources .opc-activity-card dl div:nth-child(n + 3) {
    display: none;
  }

  #resources .opc-activity-card dl {
    margin-top: 7px;
    font-size: 10px;
    line-height: 16px;
  }

  #resources .opc-activity-card .tcwf-action {
    min-height: 44px;
    margin-top: 9px;
  }

  #resources .opc-resource-mobile {
    display: none !important;
  }

  #resources .opc-resource-desktop {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #resources .opc-resource-card {
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
  }

  #resources .opc-resource-card--portal .opc-resource-card__media {
    height: 92px;
  }

  #resources .opc-resource-card--portal .opc-resource-card__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #resources .opc-resource-card--portal .opc-resource-card__media h3 {
    font-size: 14px;
    line-height: 21px;
  }

  #resources .opc-resource-card__body {
    min-height: 0;
    padding: 12px;
  }

  #resources .opc-resource-card--portal .opc-resource-card__body,
  #resources .opc-resource-card--more .opc-resource-card__body {
    min-height: 0;
  }

  #resources .opc-resource-card--more .opc-resource-action {
    margin-top: 10px;
  }

  #resources .opc-resource-label,
  #resources .opc-resource-card__body > p,
  #resources .opc-resource-card__body > h4,
  #resources .opc-resource-portal-list button:nth-child(n + 2) {
    display: none;
  }

  #resources .opc-resource-portal-list button {
    min-height: 54px;
    padding: 8px;
    font-size: 10px;
  }

  #resources .opc-resource-action {
    min-height: 44px;
    margin-top: 9px;
    font-size: 11px;
  }

  #resources .opc-resource-card--more {
    grid-column: 1 / -1;
  }

  #resources .opc-resource-card--more h4 {
    display: block;
    font-size: 17px;
    line-height: 24px;
  }

  #resources .opc-resource-tool-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  #resources .opc-resource-tool-list a {
    display: grid;
    min-height: 82px;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #edf0f4;
    border-radius: 11px;
  }

  #resources .opc-resource-tool-list a span p,
  #resources .opc-resource-tool-list a em {
    display: none;
  }

  #resources .opc-resource-tool-list strong {
    font-size: 12px;
    line-height: 18px;
  }

  #resources .opc-resource-tool-list small {
    font-size: 10px;
    line-height: 15px;
  }

  /* Heat ranking */
  #heat {
    background: var(--opc-mobile-bg);
  }

  #heat .opc-heading-with-tools {
    display: grid;
    gap: 12px;
  }

  #heat .opc-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #heat .opc-filter-bar label {
    min-width: 0;
  }

  #heat .opc-filter-bar select {
    width: 100%;
    min-height: 44px;
    border-radius: 22px;
    background: #fff;
  }

  .opc-mobile-detail-note {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #cfe0fa;
    border-radius: 12px;
    background: #edf5ff;
  }

  .opc-mobile-detail-note p {
    display: flex;
    flex-direction: column;
    margin: 0;
  }

  .opc-mobile-detail-note strong {
    font-size: 12px;
    line-height: 18px;
  }

  .opc-mobile-detail-note span {
    margin-top: 2px;
    color: #5f6f89;
    font-size: 10px;
    line-height: 16px;
  }

  #heat .opc-project-filters {
    margin-bottom: 18px;
  }

  #heat .opc-project-filters > span {
    display: none;
  }

  #heat .opc-heat-layout {
    display: block;
  }

  #heat .opc-ranking {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #heat .opc-rank-card {
    min-width: 0;
    margin: 0;
    padding: 12px 9px;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: none;
  }

  #heat .opc-rank-card:nth-child(1) {
    order: 2;
    min-height: 224px;
    border-color: #e5c978;
    background: linear-gradient(180deg, #fff9e9, #fff 72%);
  }

  #heat .opc-rank-card:nth-child(2) {
    order: 1;
    min-height: 206px;
    margin-top: 18px;
  }

  #heat .opc-rank-card:nth-child(3) {
    order: 3;
    min-height: 206px;
    margin-top: 18px;
  }

  #heat .opc-rank-card:nth-child(n + 4) {
    display: grid;
    min-height: 104px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    order: 4;
    padding: 12px;
  }

  #heat .opc-rank-card[hidden] {
    display: none;
  }

  #heat .opc-rank-card:nth-child(5) { order: 5; }
  #heat .opc-rank-card:nth-child(6) { order: 6; }

  #heat .opc-rank-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  #heat .opc-rank-card__header > img {
    width: 56px;
    height: 56px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #dce2ea;
  }

  #heat .opc-rank-card:nth-child(1) .opc-rank-card__header > img {
    width: 66px;
    height: 66px;
    box-shadow: 0 0 0 2px #d2ac3c;
  }

  #heat .opc-rank-number {
    position: absolute;
    top: 8px;
    left: 8px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 13px;
    font-size: 11px;
  }

  #heat .opc-rank-card__header h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #heat .opc-rank-card__meta {
    font-size: 9px;
    line-height: 14px;
  }

  #heat .opc-rank-card:nth-child(-n + 3) .opc-rank-intro,
  #heat .opc-rank-card:nth-child(-n + 3) .opc-project-list,
  #heat .opc-rank-card:nth-child(-n + 3) footer button {
    display: none;
  }

  #heat .opc-rank-card:nth-child(-n + 3) footer {
    justify-content: center;
    margin-top: 10px;
    border: 0;
    text-align: center;
  }

  #heat .opc-rank-card:nth-child(-n + 3) footer > span {
    font-size: 9px;
    line-height: 14px;
  }

  #heat .opc-rank-card:nth-child(n + 4) .opc-rank-card__header {
    display: grid;
    grid-template-columns: 30px 50px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  #heat .opc-rank-card:nth-child(n + 4) .opc-rank-number {
    position: static;
  }

  #heat .opc-rank-card:nth-child(n + 4) .opc-rank-card__header > img {
    width: 48px;
    height: 48px;
  }

  #heat .opc-rank-card:nth-child(n + 4) .opc-rank-card__header h3 {
    font-size: 13px;
    line-height: 19px;
    text-align: left;
  }

  #heat .opc-rank-card:nth-child(n + 4) .opc-rank-intro,
  #heat .opc-rank-card:nth-child(n + 4) .opc-project-list {
    display: none;
  }

  #heat .opc-rank-card:nth-child(n + 4) footer {
    margin-top: 8px;
    padding-top: 8px;
  }

  #heat .opc-rank-card:nth-child(n + 4) footer > span {
    font-size: 9px;
  }

  #heat .opc-rank-card:nth-child(n + 4) footer button {
    min-height: 44px;
    padding: 0 10px;
    font-size: 11px;
  }

  #heat .opc-my-heat {
    margin-top: 14px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #09275e, #0052d9);
  }

  #heat .opc-my-heat > strong {
    font-size: 34px;
    line-height: 40px;
  }

  #heat .opc-my-heat ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  #heat .opc-my-heat .tcwf-action {
    width: 100%;
    min-height: 44px;
  }

  /* Demand bounty */
  #demands {
    background: var(--opc-mobile-bg);
  }

  .opc-mobile-demand-sort {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 12px;
    border-bottom: 1px solid var(--opc-mobile-border);
  }

  .opc-mobile-demand-sort button {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--opc-mobile-muted);
    font-size: 12px;
  }

  .opc-mobile-demand-sort button[aria-pressed="true"] {
    border-bottom-color: var(--opc-mobile-blue);
    color: var(--opc-mobile-blue);
    font-weight: 600;
  }

  .opc-mobile-demand-tools > p {
    min-height: 18px;
    margin: 6px 2px 0;
    color: var(--opc-mobile-muted);
    font-size: 11px;
    line-height: 18px;
  }

  #demands .opc-demand-layout {
    display: flex;
    flex-direction: column;
  }

  #demands .opc-demand-sidebar {
    display: block;
    order: -1;
    margin-bottom: 16px;
  }

  #demands .opc-publish-demand {
    display: none;
  }

  #demands .opc-hot-demands {
    display: grid;
    grid-auto-columns: min(58vw, 230px);
    grid-auto-flow: column;
    gap: 9px;
    margin-inline: calc(var(--opc-mobile-gutter) * -1);
    padding-inline: var(--opc-mobile-gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  #demands .opc-hot-demands h3 {
    grid-column: 1 / -1;
    display: none;
  }

  #demands .opc-hot-demands a {
    display: flex;
    min-height: 94px;
    flex-direction: column;
    justify-content: center;
    padding: 12px;
    border: 1px solid #d8e3f4;
    border-radius: 13px;
    background: linear-gradient(145deg, #fff, #edf5ff);
    scroll-snap-align: start;
  }

  #demands .opc-hot-demands a::before {
    content: "热门需求";
    color: var(--opc-mobile-blue);
    font-size: 10px;
    line-height: 16px;
  }

  #demands .opc-hot-demands strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #demands .opc-hot-demands span {
    margin-top: 4px;
    color: var(--opc-mobile-muted);
    font-size: 10px;
    line-height: 16px;
  }

  #demands .opc-demand-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #demands .opc-demand-card {
    min-height: 0;
    padding: 14px;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
  }

  #demands .opc-demand-card header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
  }

  #demands .opc-demand-card header img {
    width: 38px;
    height: 38px;
  }

  #demands .opc-demand-card header strong {
    font-size: 12px;
  }

  #demands .opc-demand-card header small,
  #demands .opc-demand-card header em {
    font-size: 10px;
  }

  #demands .opc-demand-card h3 {
    margin-top: 11px;
    font-size: 16px;
    line-height: 23px;
  }

  #demands .opc-demand-card > p {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: var(--opc-mobile-muted);
    font-size: 12px;
    line-height: 19px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #demands .opc-demand-facts {
    gap: 6px;
    margin-top: 9px;
  }

  #demands .opc-demand-facts span {
    padding: 4px 8px;
    font-size: 10px;
  }

  #demands .opc-demand-card footer {
    margin-top: 10px;
    padding-top: 10px;
  }

  #demands .opc-demand-card footer > span {
    font-size: 10px;
  }

  #demands .opc-demand-card .opc-text-button {
    min-height: 44px;
    padding: 0 12px;
  }

  #demands .opc-pagination {
    margin-top: 16px;
  }

  #demands .opc-pagination button {
    min-width: 44px;
    min-height: 44px;
  }

  .opc-mobile-demand-fab {
    position: fixed;
    z-index: 70;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 7px;
    padding: 0 17px;
    border: 0;
    border-radius: 26px;
    background: var(--opc-mobile-blue);
    box-shadow: 0 10px 28px rgba(0, 82, 217, 0.3);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
  }

  /* Inspiration community */
  #ideas {
    overflow: visible;
    background: var(--opc-mobile-bg);
  }

  #ideas .opc-heading-with-tools {
    display: flex;
    align-items: start;
  }

  #ideas .opc-heading-with-tools > .tcwf-action {
    min-height: 44px;
    padding: 0 13px;
    font-size: 11px;
  }

  .opc-mobile-world-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 11px;
    border: 1px solid #cdddf7;
    border-radius: 13px;
    background: #edf5ff;
  }

  .opc-mobile-world-summary > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .opc-mobile-world-summary > div span {
    display: flex;
    flex-direction: column;
  }

  .opc-mobile-world-summary > div strong {
    color: var(--opc-mobile-blue);
    font-size: 16px;
    line-height: 20px;
  }

  .opc-mobile-world-summary > div small {
    color: #5f6f89;
    font-size: 9px;
    line-height: 14px;
  }

  .opc-mobile-world-summary > button {
    display: flex;
    min-height: 46px;
    box-sizing: border-box;
    align-items: center;
    gap: 5px;
    padding: 0 11px;
    border: 0;
    border-radius: 21px;
    background: var(--opc-mobile-blue);
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
  }

  #ideas .opc-pixel-world {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #ideas .world-toolbar {
    min-height: 0;
    padding: 12px;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 13px 13px 0 0;
    background: #fff;
  }

  #ideas .world-toolbar__identity h3 {
    font-size: 16px;
    line-height: 23px;
  }

  #ideas .world-toolbar__hint,
  #ideas .world-toolbar__actions,
  #ideas .world-filterbar,
  #ideas .world-stage__scene,
  #ideas .world-stage__instruction,
  #ideas .world-mobile-touch-hint,
  #ideas .world-stage__pan,
  #ideas .world-stage__legend {
    display: none;
  }

  #ideas .world-workspace {
    display: block;
  }

  #ideas .world-stage {
    width: 100%;
    height: 166px;
    min-height: 166px;
    overflow: hidden;
    border: 1px solid var(--opc-mobile-border);
    border-top: 0;
    border-radius: 0 0 13px 13px;
    background: #0f264d;
  }

  #ideas .world-stage canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-toolbar__actions,
  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-filterbar,
  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-stage__scene,
  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-stage__instruction,
  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-mobile-touch-hint,
  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-stage__pan,
  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-stage__legend {
    display: flex;
  }

  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-toolbar__actions {
    margin-top: 10px;
    overflow-x: auto;
  }

  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-toolbar__actions button {
    flex: 0 0 auto;
    min-height: 44px;
  }

  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-filterbar {
    display: block;
    padding: 10px;
    overflow: hidden;
    border: 1px solid var(--opc-mobile-border);
    border-top: 0;
    background: #fff;
  }

  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-filterbar__options {
    overflow-x: auto;
  }

  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-stage {
    height: min(64vh, 540px);
    min-height: 390px;
    border-radius: 0;
  }

  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-stage__instruction,
  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-mobile-touch-hint {
    position: absolute;
    z-index: 7;
    top: auto;
    right: 8px;
    bottom: 52px;
    left: 8px;
    min-height: 44px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 8px;
    background: rgb(8 33 58 / 92%);
    box-shadow: 0 4px 0 rgb(5 22 40 / 34%);
    color: #fff;
    font-size: 11px;
    line-height: 15px;
    text-align: center;
    pointer-events: none;
  }

  #ideas .world-stage__instruction-divider {
    flex: 0 0 1px;
  }

  /* v0.30 guidance stays above the five-item Dock and disappears with a collapsed map. */
  .opc-page:not([data-mobile-view="ideas"]) .world-guidance,
  .opc-page:not([data-mobile-world-expanded="true"]) .world-guidance,
  .opc-page:not([data-mobile-view="ideas"]) .world-hover-sync,
  .opc-page:not([data-mobile-world-expanded="true"]) .world-hover-sync,
  #ideas .world-tour[hidden],
  #ideas .world-tour[aria-hidden="true"],
  #ideas .world-tour-card[hidden],
  #ideas .world-discovery[hidden],
  #ideas .world-ending[hidden],
  #ideas .world-celebration[hidden],
  #ideas .world-celebration[aria-hidden="true"],
  #ideas .world-hover-sync[hidden],
  #ideas .world-hover-sync[aria-hidden="true"] {
    display: none !important;
  }

  #ideas .world-guidance {
    min-height: 0;
    margin: 0;
  }

  #ideas .world-tour,
  #ideas .world-discovery,
  #ideas .world-ending,
  #ideas .world-celebration,
  #ideas .world-hover-sync {
    position: fixed !important;
    top: auto !important;
    right: var(--opc-mobile-gutter) !important;
    bottom: calc(var(--opc-mobile-dock) + env(safe-area-inset-bottom) + 12px) !important;
    left: var(--opc-mobile-gutter) !important;
    width: auto;
    max-width: 520px;
    max-height: calc(100dvh - var(--opc-mobile-header) - var(--opc-mobile-dock) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px);
    box-sizing: border-box;
    margin-inline: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgb(3 27 78 / 18%);
    color: var(--opc-mobile-text);
    pointer-events: auto;
    touch-action: pan-y;
    transform: none !important;
  }

  #ideas .world-tour {
    z-index: 96;
  }

  #ideas .world-discovery,
  #ideas .world-hover-sync {
    z-index: 97;
  }

  #ideas .world-ending,
  #ideas .world-celebration {
    z-index: 98;
  }

  #ideas .world-tour-card,
  #ideas .world-celebration,
  #ideas .world-hover-sync {
    padding: 14px;
    border: 1px solid #cbd8eb;
    background: #fff;
  }

  #ideas .world-tour-card {
    width: min(100%, 520px);
    max-height: inherit;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgb(3 27 78 / 18%);
    pointer-events: auto;
    touch-action: pan-y;
  }

  #ideas .world-tour-card h2,
  #ideas .world-tour-card h3,
  #ideas .world-tour-card h4,
  #ideas .world-celebration h2,
  #ideas .world-celebration h3,
  #ideas .world-celebration h4,
  #ideas .world-hover-sync h2,
  #ideas .world-hover-sync h3,
  #ideas .world-hover-sync h4 {
    margin: 0;
    font-size: 17px;
    line-height: 24px;
  }

  #ideas .world-tour-card p,
  #ideas .world-celebration p,
  #ideas .world-hover-sync p {
    margin: 6px 0 0;
    color: var(--opc-mobile-muted);
    font-size: 13px;
    line-height: 20px;
  }

  #ideas .world-tour__actions,
  #ideas .world-tour-actions,
  #ideas .world-ending__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #ideas .world-tour__actions button,
  #ideas .world-tour__actions a,
  #ideas .world-tour-actions button,
  #ideas .world-tour-actions a,
  #ideas .world-tour-actions [role="button"],
  #ideas .world-discovery > button,
  #ideas .world-ending__actions button,
  #ideas .world-ending__actions a,
  #ideas .world-celebration button,
  #ideas .world-celebration a,
  #ideas .world-celebration [role="button"],
  #ideas .world-hover-sync button,
  #ideas .world-hover-sync a,
  #ideas .world-hover-sync [role="button"] {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    text-align: center;
    touch-action: manipulation;
  }

  #ideas .world-director {
    flex: 0 0 auto;
  }

  #ideas .world-toolbar__actions:has(.world-director__menu:not([hidden])) {
    overflow: visible;
  }

  #ideas .world-director__menu:not([hidden]) {
    position: fixed;
    z-index: 99;
    top: auto;
    right: var(--opc-mobile-gutter);
    bottom: calc(var(--opc-mobile-dock) + env(safe-area-inset-bottom) + 12px);
    left: var(--opc-mobile-gutter);
    display: grid;
    width: auto;
    max-width: 520px;
    margin-inline: auto;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgb(3 27 78 / 18%);
  }

  #ideas .world-director__menu button,
  #ideas .world-toolbar__actions .world-director__menu button:last-child {
    min-height: 44px;
  }

  #ideas .community-feed-panel {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
  }

  #ideas .community-feed__header {
    padding: 14px;
  }

  #ideas .community-feed__header h3 {
    font-size: 17px;
    line-height: 24px;
  }

  #ideas .community-feed__map-note,
  #ideas .community-feed__search,
  #ideas .post-panel__footer {
    display: none;
  }

  #ideas .community-feed__viewbar {
    margin-top: 10px;
    overflow-x: auto;
  }

  #ideas .community-feed__viewbar button,
  #ideas .community-feed__viewbar select {
    min-height: 44px;
  }

  #ideas .community-feed {
    padding: 0 12px 14px;
  }

  #ideas .community-feed article,
  #ideas .community-feed .community-post-card {
    border-radius: 12px;
  }

  #ideas .world-composer,
  #ideas .world-residency {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    border-radius: 16px;
  }

  #ideas .world-toast {
    bottom: calc(var(--opc-mobile-dock) + env(safe-area-inset-bottom) + 10px);
  }

  /* Summit detail */
  #summit.opc-summit {
    position: relative;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background: #071a3d;
  }

  #summit.opc-summit > img,
  #summit.opc-summit > .opc-summit__overlay {
    position: absolute;
    z-index: 0;
    inset: 0 0 auto;
    width: 100%;
    height: 390px;
  }

  #summit.opc-summit > img {
    object-fit: cover;
    object-position: center 44%;
  }

  #summit.opc-summit > .opc-summit__overlay {
    background: linear-gradient(180deg, rgba(4, 15, 39, 0.28), rgba(4, 18, 51, 0.92));
  }

  #summit .opc-summit__inner {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 680px;
    min-height: 390px;
    align-items: end;
    margin: 0 auto;
    padding: 34px var(--opc-mobile-gutter) 28px;
  }

  #summit .opc-summit__copy {
    width: 100%;
    max-width: none;
  }

  #summit .opc-summit__copy h2 {
    margin-top: 8px;
    font-size: 27px;
    line-height: 36px;
    letter-spacing: -0.03em;
  }

  #summit .opc-summit__meta {
    margin-top: 8px;
    font-size: 13px;
    line-height: 20px;
  }

  #summit .opc-summit__award,
  #summit .opc-summit__nomination {
    display: none;
  }

  #summit .tcwf-solution-cta__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
  }

  #summit .tcwf-action {
    width: 100%;
    min-height: 46px;
    padding: 0 10px;
    font-size: 12px;
  }

  .opc-mobile-summit-details {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 var(--opc-mobile-gutter) 44px;
    background: #fff;
  }

  .opc-mobile-summit-value {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0 calc(var(--opc-mobile-gutter) * -1);
    padding: 16px var(--opc-mobile-gutter);
    background: #071a3d;
    color: #fff;
  }

  .opc-mobile-summit-value span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 0 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
  }

  .opc-mobile-summit-value span:last-child {
    border-right: 0;
  }

  .opc-mobile-summit-value strong {
    font-size: 12px;
    line-height: 18px;
  }

  .opc-mobile-summit-value small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 9px;
    line-height: 14px;
  }

  .opc-mobile-summit-block {
    padding-top: 28px;
  }

  .opc-mobile-summit-block > header small {
    color: var(--opc-mobile-blue);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.12em;
  }

  .opc-mobile-summit-block > header h3 {
    margin-top: 2px;
    font-size: 19px;
    line-height: 27px;
  }

  .opc-mobile-summit-agenda {
    position: relative;
    display: grid;
    gap: 0;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
  }

  .opc-mobile-summit-agenda::before {
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 43px;
    width: 1px;
    background: #cdddf7;
    content: "";
  }

  .opc-mobile-summit-agenda li {
    position: relative;
    display: grid;
    min-height: 76px;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 0;
  }

  .opc-mobile-summit-agenda time {
    position: relative;
    z-index: 1;
    display: grid;
    width: 48px;
    min-height: 32px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 16px;
    background: var(--opc-mobile-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
  }

  .opc-mobile-summit-agenda li > span {
    display: flex;
    flex-direction: column;
  }

  .opc-mobile-summit-agenda strong {
    font-size: 13px;
    line-height: 20px;
  }

  .opc-mobile-summit-agenda small {
    margin-top: 3px;
    color: var(--opc-mobile-muted);
    font-size: 11px;
    line-height: 18px;
  }

  .opc-mobile-summit-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
  }

  .opc-mobile-summit-stats span {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6e2f4;
    border-radius: 13px;
    background: #f6f9ff;
    text-align: center;
  }

  .opc-mobile-summit-stats strong {
    color: var(--opc-mobile-blue);
    font-size: 28px;
    line-height: 34px;
  }

  .opc-mobile-summit-stats small {
    margin-top: 3px;
    color: var(--opc-mobile-muted);
    font-size: 10px;
    line-height: 16px;
  }

  .opc-mobile-summit-gallery {
    grid-auto-columns: min(68vw, 280px);
    margin-top: 14px;
  }

  .opc-mobile-summit-gallery img {
    width: 100%;
    height: 156px;
    object-fit: cover;
    border-radius: 13px;
    scroll-snap-align: start;
  }

  .opc-mobile-summit-join > div {
    display: grid;
    gap: 9px;
    margin-top: 14px;
  }

  .opc-mobile-summit-join a {
    display: grid;
    min-height: 76px;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--opc-mobile-border);
    border-radius: 13px;
    color: var(--opc-mobile-text);
    text-decoration: none;
  }

  .opc-mobile-summit-join img {
    width: 44px;
    height: 44px;
  }

  .opc-mobile-summit-join span {
    display: flex;
    flex-direction: column;
  }

  .opc-mobile-summit-join strong {
    font-size: 14px;
    line-height: 21px;
  }

  .opc-mobile-summit-join small {
    color: var(--opc-mobile-muted);
    font-size: 11px;
    line-height: 17px;
  }

  /* Dialogs become safe mobile sheets. */
  .opc-dialog {
    width: min(calc(100% - 24px), 520px);
    max-height: calc(100dvh - 28px);
    margin: auto auto max(12px, env(safe-area-inset-bottom));
    padding: 18px;
    border-radius: 18px 18px 12px 12px;
  }

  .opc-dialog__close,
  .opc-dialog__confirm {
    min-height: 44px;
  }

  .opc-section-more {
    margin-top: 14px;
  }

  .opc-section-more__link {
    min-height: 44px;
  }

  .opc-mobile-toast {
    position: fixed;
    z-index: 130;
    right: var(--opc-mobile-gutter);
    bottom: calc(var(--opc-mobile-dock) + env(safe-area-inset-bottom) + 14px);
    left: var(--opc-mobile-gutter);
    max-width: 520px;
    margin-inline: auto;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(12, 24, 48, 0.94);
    box-shadow: 0 10px 28px rgba(3, 27, 78, 0.22);
    color: #fff;
    font-size: 12px;
    line-height: 19px;
    text-align: center;
  }

  .opc-page[data-mobile-secondary="true"] .opc-mobile-toast {
    bottom: max(18px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 359px) {
  .opc-mobile-home-roles {
    display: grid;
    grid-auto-columns: 42vw;
    grid-auto-flow: column;
    grid-template-columns: none;
    margin-inline: calc(var(--opc-mobile-gutter) * -1);
    padding-inline: var(--opc-mobile-gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .opc-mobile-home-roles a {
    scroll-snap-align: start;
  }

  #community-selected .opc-community-runners__track,
  #resources .opc-resource-desktop,
  .opc-mobile-home-quick-grid {
    grid-template-columns: 1fr;
  }

  #resources .opc-resource-card--more {
    grid-column: auto;
  }

  #heat .opc-ranking {
    gap: 5px;
  }

  #heat .opc-rank-card {
    padding-inline: 6px;
  }

  .opc-mobile-world-summary {
    grid-template-columns: 1fr;
  }

  .opc-mobile-world-summary > button {
    width: 100%;
    justify-content: center;
  }

  #ideas .world-tour__actions,
  #ideas .world-tour-actions,
  #ideas .world-ending__actions {
    grid-template-columns: 1fr;
  }

  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-stage__instruction,
  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-mobile-touch-hint {
    flex-direction: column;
    gap: 2px;
  }

  #ideas .world-stage__instruction-divider {
    display: none;
  }
}

@media (min-width: 600px) and (max-width: 820px) {
  .opc-mobile-home-roles a {
    min-height: 112px;
  }

  .opc-mobile-home-park-rail {
    grid-auto-columns: 210px;
  }

  .opc-mobile-home-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #community-selected .opc-community-runners__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #resources .opc-expert-page__grid {
    grid-auto-columns: 310px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opc-mobile-home-park-rail,
  .opc-mobile-summit-gallery,
  .opc-mobile-chip-rail,
  .opc-mobile-resource-tabs,
  #resources .opc-expert-page__grid,
  #resources .opc-activity-viewport,
  #demands .opc-hot-demands {
    scroll-behavior: auto;
  }

  #ideas .world-tour,
  #ideas .world-tour-card,
  #ideas .world-tour__actions,
  #ideas .world-tour-actions,
  #ideas .world-discovery,
  #ideas .world-ending,
  #ideas .world-celebration,
  #ideas .world-hover-sync,
  #ideas .world-director__menu,
  #ideas .world-stage__instruction,
  #ideas .world-mobile-touch-hint {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
