/* FastForth Shop demo host
   Only affects the Shop tab and Shop-active wide-screen shell. */

#pShop {
  padding: 0;
  overflow: hidden;
}

.shop-demo-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: var(--bg);
}

@media (min-width: 721px) {
  body.shop-wide #app {
    max-width: none;
  }

  body.shop-wide #nav {
    max-width: 620px;
  }

  body.shop-wide .sheet {
    max-width: 430px;
  }
}

/* Global FastForth responsive application shell */
.ff-global-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.ff-global-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border-radius: 13px;
  background: #0759f5;
  box-shadow: 0 7px 16px rgba(7, 89, 245, 0.22);
}

.ff-global-mark img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ff-global-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ff-global-brand-copy strong {
  color: var(--t1);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.ff-global-brand-copy span {
  margin-top: 4px;
  color: var(--t3);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.8px;
}

#topbar {
  min-height: 68px;
  padding: 11px 16px;
}

@media (min-width: 721px) {
  #app {
    max-width: none;
  }

  #topbar {
    min-height: 90px;
    padding: 16px 28px;
  }

  #nav {
    max-width: 620px;
  }

  #pHome {
    padding: 24px 28px 110px;
  }

  #todayV2 > .sp {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 14px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
    align-items: start;
  }

  #todayV2 > .sp > .sec-t {
    grid-column: 1 / -1;
  }

  #todayV2 > .sp > .wcard {
    grid-column: 1;
    grid-row: 2 / span 3;
    min-height: 250px;
  }

  #todayV2 > .sp > .intel-item {
    grid-column: 2;
    margin-top: 0 !important;
  }

  #todayV2 > .sp > .sp {
    grid-column: 1 / -1;
    width: 100%;
  }

  #pActivity > .sp-inner {
    width: calc(100% - 56px);
    max-width: 1080px;
    margin: 0 auto;
  }

  #pProfile > .sp-inner {
    width: calc(100% - 56px);
    max-width: 800px;
    margin: 0 auto;
  }

  .sheet {
    max-width: 430px;
  }
}


/* Home desktop layout — full-width mockup structure */
@media (min-width: 721px) {
  #todayV2 > .sp {
    display: block;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
  }

  #todayV2 > .sp > .sec-t {
    margin-bottom: 16px;
  }

  #todayV2 > .sp > .wcard {
    width: 100%;
    min-height: 154px;
    margin: 0;
  }

  #todayV2 > .sp > .intel-item {
    width: 100%;
    margin-top: 14px !important;
  }

  #todayV2 > .sp > .sp {
    width: 100%;
  }
}


/* High-resolution FastForth Pay header mark */
.ff-global-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

