.app-cctp-panel {
  position: absolute;
  z-index: var(--app-cctp-layer-panel);
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--app-cctp-panel-text);
  background: var(--app-cctp-panel-bg);
  transform: translate3d(-100%,0,0);
  visibility: hidden;
  transition: transform var(--app-cctp-panel-duration) var(--app-cctp-panel-easing),visibility 0s linear var(--app-cctp-panel-duration);
}
.app-cctp-panel[data-app-cctp-panel-mode="menu"] {
  right: auto;
  width: calc(100% - var(--app-cctp-menu-visible-rail));
  transform: translate3d(-100%,0,0);
  box-shadow: var(--app-cctp-shadow);
}
.app-cctp-panel[data-app-cctp-panel-state="active"] {
  transform: translate3d(0,0,0);
  visibility: visible;
  transition-delay: 0s;
}
.app-cctp-panel[data-app-cctp-panel-state="previous"] {
  transform: translate3d(100%,0,0);
  visibility: visible;
  transition-delay: 0s;
}
.app-cctp-panel-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--app-cctp-header-height) + var(--app-cctp-safe-top));
}
.app-cctp-panel-back-row {
  position: absolute;
  z-index: 2;
  top: calc(var(--app-cctp-header-height) + var(--app-cctp-safe-top));
  left: 0;
  right: 0;
  height: var(--app-cctp-back-row-height);
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  background: #fff;
  color: var(--app-cctp-panel-text);
  box-shadow: 0 1px 5px rgba(20,28,45,.12);
}
.app-cctp-panel-back {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #24324d;
  cursor: pointer;
}
.app-cctp-panel-back svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.app-cctp-panel-title { grid-column: 2; margin: 0; text-align: center; font-size: 17px; line-height: 1; letter-spacing: .045em; }
.app-cctp-panel-scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--app-cctp-panel-bg);
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--app-cctp-header-height) + var(--app-cctp-safe-top) + var(--app-cctp-back-row-height) + var(--app-cctp-content-padding));
  scroll-padding-bottom: calc(var(--app-cctp-footer-height) + var(--app-cctp-safe-bottom) + var(--app-cctp-content-padding));
}
.app-cctp-panel-content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding:
    calc(var(--app-cctp-header-height) + var(--app-cctp-safe-top) + var(--app-cctp-back-row-height) + var(--app-cctp-content-padding))
    var(--app-cctp-content-padding)
    calc(var(--app-cctp-footer-height) + var(--app-cctp-safe-bottom) + var(--app-cctp-content-padding));
}
.app-cctp-panel-main { flex: 1 0 auto; }
.app-cctp-panel-content a { color: var(--app-cctp-panel-link); }
.app-cctp-panel-nav { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 20px; }
.app-cctp-panel-nav a { padding: 9px 12px; border-radius: 999px; background: #f0efff; text-decoration: none; font-weight: 700; }
.app-cctp-post-card { margin: 0 0 14px; padding: 17px; border-radius: 16px; background: #f6f7fb; box-shadow: 0 2px 10px rgba(28,35,60,.08); }
.app-cctp-post-card h2 { margin: 0 0 7px; font-size: 20px; }
.app-cctp-post-card p { margin: 0; line-height: 1.55; }
.app-cctp-menu-list { display: grid; gap: 5px; }
.app-cctp-menu-list a { min-height: 48px; display: flex; align-items: center; padding: 9px 13px; border-radius: 11px; color: #24324d; background: #f3f5f8; text-decoration: none; }
.app-cctp-bottom-logo { flex: 0 0 auto; display: grid; place-items: center; padding: 34px 0 20px; }
.app-cctp-bottom-logo img { display: block; width: min(280px,72vw); height: auto; object-fit: contain; }

/* PATCH 61 — only the SIZE CHỮ chooser is a half-width Push Panel. */
.app-cctp-panel[data-app-cctp-panel-mode="half"] {
  right: auto;
  width: 50vw;
  max-width: 50vw;
  box-shadow: var(--app-cctp-shadow);
}
.app-cctp-shell[data-app-cctp-half-open="true"] .app-cctp-home-screen {
  transform: translate3d(50vw,0,0);
}
.app-cctp-shell[data-app-cctp-half-open="true"]
  .app-cctp-panel[data-app-cctp-panel-state="previous"] {
  transform: translate3d(50vw,0,0);
}

@media (prefers-reduced-motion: reduce) {
  .app-cctp-screen,
  .app-cctp-panel { transition-duration: 1ms; }
}

/* PATCH 62 — block taps on the exposed half while SIZE CHỮ is open. */
.app-cctp-shell[data-app-cctp-half-open="true"]::after {
  content: "";
  position: absolute;
  z-index: calc(var(--app-cctp-layer-panel) + 1);
  top: 0;
  right: 0;
  width: 50vw;
  height: 100%;
  pointer-events: auto;
  background: transparent;
}
