/* DREAMCARS — universal responsive layer (load last after dc-mobile-pwa-shell.css) */body.feed-v2-surface{
  --dc-shell-max: 100%;
}:root{
  --dc-shell-max: clamp(280px, 92vw, 430px);
  --dc-content-inline: max(12px, env(safe-area-inset-left, 0px));
  --dc-content-inline-end: max(12px, env(safe-area-inset-right, 0px));
  --dc-vv-height: 100dvh;
  --dc-vv-height-fallback: 100vh;
  --dc-keyboard-offset: 0px;
  --dc-keyboard-open: 0;
  --dc-shell-header-gap: 10px;
  --dc-shell-nav-gap: 0px;
  --dc-bottom-nav-bar-min: 56px;
  --dc-bottom-nav-bar-h: 50px;
  --dc-bottom-legal-font-size: 8px;
  --dc-bottom-legal-line-height: 1.25;
  --dc-bottom-legal-gap: 14px;
  --dc-bottom-legal-margin-top: 2px;
  --dc-bottom-legal-min-h: 12px;
  --dc-bottom-nav-legal-h: 16px;
  --dc-bottom-nav-measured: 76px;
  --dc-bottom-nav-shell-h: 76px;
  --dc-bottom-nav-safe-gap: 0px;
  --dc-bottom-nav-legal-inset: 6px;
  --dc-bottom-nav-safe-bottom: env(safe-area-inset-bottom, 0px);
  --dc-bottom-nav-padding-bottom: max(var(--dc-bottom-nav-legal-inset), var(--dc-bottom-nav-safe-bottom));
  --dc-safe-top: env(safe-area-inset-top, 0px);
  --dc-safe-bottom: env(safe-area-inset-bottom, 0px);
  --dc-chrome-bottom-bg: transparent;
  --dc-shell-header-reserve: calc(76px + var(--dc-safe-top) + var(--dc-shell-header-gap));
  --dc-shell-nav-reserve: var(--dc-bottom-nav-shell-h, calc(var(--dc-bottom-nav-measured, 68px) + var(--dc-bottom-nav-padding-bottom, 0px)));
  --dc-chrome-nav-h: var(--dc-bottom-nav-measured);
  --dc-chrome-nav-reserve: var(--dc-shell-nav-reserve);
  --dc-chrome-header-reserve: var(--dc-shell-header-reserve);
}html.dc-pwa-emulate{
  --dc-bottom-nav-safe-bottom: 34px;
  --dc-bottom-nav-padding-bottom: max(var(--dc-bottom-nav-legal-inset), var(--dc-bottom-nav-safe-bottom));
  --dc-shell-header-reserve: calc(76px + 59px + var(--dc-shell-header-gap));
  --dc-shell-nav-reserve: var(--dc-bottom-nav-shell-h, calc(var(--dc-bottom-nav-measured, 68px) + var(--dc-bottom-nav-padding-bottom, 0px)));
}
/* Real installed PWA (iOS standalone): env(safe-area-inset-bottom) frequently
   reports 0 AND @media(display-mode:standalone) doesn't reliably match on iOS,
   so the home indicator clips the nav labels. Key off the runtime class the
   bootstrap sets via navigator.standalone, and floor the bottom reserve. */
@media (display-mode: standalone), (display-mode: fullscreen){
  :root{
    --dc-bottom-nav-safe-bottom: max(env(safe-area-inset-bottom, 0px), 34px);
    --dc-bottom-nav-padding-bottom: max(var(--dc-bottom-nav-legal-inset), var(--dc-bottom-nav-safe-bottom));
  }
}
body.dc-pwa-standalone, body.dc-pwa-installed, body.dc-runtime-pwa{
  --dc-bottom-nav-safe-bottom: max(env(safe-area-inset-bottom, 0px), 34px);
  --dc-bottom-nav-padding-bottom: max(var(--dc-bottom-nav-legal-inset), var(--dc-bottom-nav-safe-bottom));
}/* Bottom nav legal row + dock/bar/tab styling: authority in dc-bottom-nav.css */

.dc-shell-top-guard{
  display: block;
  width: 100%;
  height: var(--dc-shell-header-reserve);
  min-height: calc(76px + var(--dc-safe-top) + var(--dc-shell-header-gap));
  flex: 0 0 auto;
  pointer-events: none;
  visibility: hidden;
}

body.contests-public-open:has(.cp-topbar-shell) .dc-shell-top-guard,
body.contest-user-open:has(.cp-topbar-shell) .dc-shell-top-guard,
body.profile-user-open:has(.cp-topbar-shell) .dc-shell-top-guard {
  height: calc(
    var(--admin-header-height, calc(var(--dc-safe-top, 0px) + 76px))
    + var(--dc-hub-pinned-bar-h, 40px)
    + var(--dc-hub-pinned-bar-gap, 8px)
  );
  min-height: calc(
    var(--admin-header-height, calc(var(--dc-safe-top, 0px) + 76px))
    + var(--dc-hub-pinned-bar-h, 40px)
    + var(--dc-hub-pinned-bar-gap, 8px)
  );
}

/* Bottom safe-area fill — only when there is no fixed bottom nav (nav paints its own safe padding). */
.dc-safe-bottom-chrome{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--dc-safe-bottom, env(safe-area-inset-bottom, 0px));
  min-height: var(--dc-safe-bottom, env(safe-area-inset-bottom, 0px));
  background: var(--dc-chrome-bottom-bg, #000);
  z-index: 99998;
  pointer-events: none;
}

body.user-mode:not(.auth-mode):not(.admin-mode):has(nav.user-bottom-nav.dc-bottom-nav:not(.dc-bottom-nav--composer-slot)) .dc-safe-bottom-chrome,
body.admin-mode.admin-mobile-shell:has(nav.dc-bottom-nav--admin) .dc-safe-bottom-chrome,
body:has(nav.user-bottom-nav.dc-bottom-nav:not(.dc-bottom-nav--composer-slot)) > .dc-safe-bottom-chrome,
body:has(nav.dc-bottom-nav--admin) > .dc-safe-bottom-chrome{
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  pointer-events: none !important;
}

html.dc-pwa-emulate .dc-safe-bottom-chrome{
  min-height: 34px;
  height: 34px;
}

/* Safari/iOS: prevent focus zoom — 16px minimum on narrow viewports (site tier contract). */
@media (max-width: 767px){
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="range"]),
  textarea,
  select,
  .dc-composer__input{
    font-size: 16px;
  }
}/* --- Global: no horizontal page scroll --- */
html{
  overflow-x: clip;
  max-width: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

@supports not (height: 100dvh){
  html {
    min-height: 100vh;
  }
}body{
  overflow-x: clip;
  max-width: 100%;
  min-width: 0;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}@supports not (height: 100dvh){
  body {
    min-height: 100vh;
  }
}body.dc-runtime-browser.dc-shell-open.user-mode:not(.admin-mode):not(.auth-mode){
  padding-bottom: 0 !important;
  overflow-x: clip;
}.wrap,
.card,
.auth-card,
.modal,
dialog,
[role="dialog"]{
  min-width: 0;
  box-sizing: border-box;
}img,
video,
iframe,
svg,
canvas{
  max-width: 100%;
  height: auto;
}/* --- Mobile shell: fluid width, not locked to 430px viewport --- */
@media (max-width: 767px){
  .wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--dc-content-inline) !important;
    padding-right: var(--dc-content-inline-end) !important;
  }

  body.user-mode:not(.admin-mode) .wrap,
  body.admin-mode.admin-mobile-shell .wrap {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Neutralize bleed-out negative margins (legacy in-page headers only) */
  body.user-mode:not(.admin-mode) header:not(.dc-app-header),
  body.user-mode:not(.admin-mode) .wrap > header:not(.dc-app-header) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.user-mode .feed-img,
  body.user-mode .contest-image {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Centered fixed sheet: always fit viewport (nav dock owns its own width) */
  body.user-mode:not(.auth-mode):not(.admin-mode) .dc-nav-sheet__panel {
    width: 100% !important;
    max-width: min(100%, var(--dc-shell-max)) !important;
  }

  header.dc-app-header {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  header.dc-app-header .dc-header-brand,
  header.dc-app-header .dc-header-meta,
  header.dc-app-header .dc-header-actions {
    min-width: 0 !important;
  }

  header.dc-app-header .dc-header-meta:empty {
    display: none !important;
  }

  /* Guest install pill: shrink on narrow screens instead of forcing 132px */
  html body.user-mode:not(.auth-mode):not(.admin-mode) header.dc-app-header.dc-role-guest #pwaInstallBtn.pwa-install-btn,
  html body.user-mode:not(.auth-mode):not(.admin-mode) header.dc-app-header.dc-role-guest .pwa-install-btn {
    width: auto !important;
    min-width: 0 !important;
    max-width: min(132px, 34vw) !important;
    flex: 0 1 auto !important;
    flex-shrink: 1 !important;
  }

  header.dc-app-header .header-subscribers-count {
    font-weight: 400 !important;
  }

  header.dc-app-header .header-user {
    max-width: min(160px, 38vw) !important;
  }
}/* --- Breakpoint tiers (width-based, not device models) --- */
@media (max-width: 360px){
  :root {
    --dc-content-inline: max(10px, env(safe-area-inset-left, 0px));
    --dc-content-inline-end: max(10px, env(safe-area-inset-right, 0px));
  }

  header.dc-app-header .brand-wordmark-svg {
    max-width: min(140px, 42vw) !important;
  }

  html body.user-mode:not(.auth-mode):not(.admin-mode) nav.user-bottom-nav.dc-bottom-nav {
    padding-left: max(6px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(6px, env(safe-area-inset-right, 0px)) !important;
  }

  body.stickers-page-open .stickers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.stickers-page-open .sticker-slot,
  body.stickers-page-open .sticker-img,
  body.stickers-page-open .sticker-img-missing {
    width: min(100%, 64px) !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }

  .btn,
  button,
  .auth-card .btn {
    font-size: 13px !important;
  }
}@media (min-width: 361px) and (max-width: 390px){
  header.dc-app-header .brand-wordmark-svg {
    max-width: min(160px, 44vw) !important;
  }
}@media (min-width: 391px) and (max-width: 430px){
  header.dc-app-header .brand-wordmark-svg {
    max-width: min(180px, 46vw) !important;
  }
}@media (min-width: 431px) and (max-width: 480px){
  body.user-mode:not(.admin-mode):not(.guest-home-open) .wrap {
    max-width: min(100%, var(--dc-shell-max)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}@media (min-width: 768px) and (max-width: 1179px){
  .wrap {
    max-width: min(100% - 32px, 1180px) !important;
  }

  html body.admin-mode.admin-hub-page .wrap {
    max-width: 100% !important;
  }
}/* --- Auth: fluid forms + keyboard (desktop min-height; mobile uses fixed shell) --- */
@media (min-width: 768px){
  body.user-mode.auth-mode,
  body.admin-mode.auth-page {
    min-height: var(--dc-vv-height, 100dvh) !important;
  }
}@media (min-width: 900px){
  html body.user-mode.auth-mode.auth-form-open,
  html body.admin-mode.auth-page.auth-form-open {
    background: transparent !important;
    background-color: transparent !important;
  }

  html body.user-mode.auth-mode.auth-form-open .wrap,
  html body.admin-mode.auth-page.auth-form-open .wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: min(100%, 520px) !important;
    min-height: 100dvh !important;
    margin: 0 auto !important;
    padding: calc(var(--dc-auth-header-h, 88px) + 16px) 18px 32px !important;
    box-sizing: border-box !important;
  }

  html body.user-mode.auth-mode.auth-form-open .auth-scroll-pane,
  html body.admin-mode.auth-page.auth-form-open .auth-scroll-pane {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    display: block !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-top: 0 !important;
    padding-bottom: 24px !important;
    box-sizing: border-box !important;
  }

  html body.user-mode.auth-mode.auth-form-open .auth-register-card,
  html body.admin-mode.auth-page.auth-form-open .auth-register-card,
  html body.user-mode.auth-mode.auth-form-open .auth-login-card,
  html body.admin-mode.auth-page.auth-form-open .auth-login-card,
  html body.user-mode.auth-mode.auth-form-open .user-login-card,
  html body.admin-mode.auth-page.auth-form-open .user-login-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  html body.user-mode.auth-mode.auth-form-open .auth-card.user-login-compact,
  html body.admin-mode.auth-page.auth-form-open .auth-card.user-login-compact {
    padding-top: 14px !important;
  }
}body.user-mode.auth-mode .wrap,
body.admin-mode.auth-page .wrap{
  width: 100% !important;
  max-width: min(100%, var(--dc-shell-max)) !important;
  padding-left: var(--dc-content-inline) !important;
  padding-right: var(--dc-content-inline-end) !important;
}body.user-mode.auth-mode .auth-card,
body.user-mode.auth-mode .card,
body.admin-mode.auth-page .auth-card{
  width: 100% !important;
  max-width: 100% !important;
}body.user-mode.auth-mode .auth-login-card .auth-social-buttons,
body.user-mode.auth-mode .user-login-card .auth-social-buttons,
body.user-mode.auth-mode .auth-register-card .auth-social-buttons{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: clamp(5px, 2vw, 11px) !important;
  width: 100% !important;
  min-width: 0 !important;
}body.user-mode.auth-mode .auth-login-card .auth-social-btn,
body.user-mode.auth-mode .auth-login-card a.auth-social-btn,
body.user-mode.auth-mode .auth-login-card button.auth-social-btn,
body.user-mode.auth-mode .user-login-card .auth-social-btn,
body.user-mode.auth-mode .user-login-card a.auth-social-btn,
body.user-mode.auth-mode .user-login-card button.auth-social-btn,
body.user-mode.auth-mode .auth-register-card .auth-social-btn,
body.user-mode.auth-mode .auth-register-card a.auth-social-btn,
body.user-mode.auth-mode .auth-register-card button.auth-social-btn{
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 44px !important;
  max-height: none !important;
  padding: 0 clamp(6px, 2vw, 10px) !important;
  font-size: clamp(10px, 2.8vw, 13px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}/* Auth mobile: shell height = visual viewport, header in flow, one scroll pane */
@media (max-width: 767px), (max-width: 1023px) and (orientation: landscape) and (max-height: 560px){
  html:has(body.user-mode.auth-mode),
  html:has(body.admin-mode.auth-page) {
    overflow: hidden !important;
    height: 100% !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.user-mode.auth-mode,
  body.admin-mode.auth-page {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    top: var(--dc-auth-shell-top, 0px) !important;
    height: var(--dc-auth-shell-h, 100dvh) !important;
    max-height: var(--dc-auth-shell-h, 100dvh) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    inset: auto !important;
  }

  html body.user-mode.auth-mode:not(.auth-form-open):not(.admin-mode):not(.comments-mode):not(.dc-shell-open) .wrap,
  html body.admin-mode.auth-page:not(.dc-shell-open) .wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: min(100%, var(--dc-shell-max)) !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 var(--dc-content-inline-end, 12px) 0 var(--dc-content-inline, 12px) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  html body.user-mode.auth-mode header.dc-app-header.dc-role-auth,
  html body.admin-mode.auth-page header.dc-app-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    width: calc(100% + var(--dc-content-inline, 12px) + var(--dc-content-inline-end, 12px)) !important;
    max-width: none !important;
    margin: 0 calc(-1 * var(--dc-content-inline-end, 12px)) 0 calc(-1 * var(--dc-content-inline, 12px)) !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
  }

  html body.user-mode.auth-mode .auth-scroll-pane,
  html body.admin-mode.auth-page .auth-scroll-pane {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
    scrollbar-width: none;
  }

  html body.user-mode.auth-mode.auth-form-open .auth-scroll-pane,
  html body.admin-mode.auth-page.auth-form-open .auth-scroll-pane,
  html body.user-mode.auth-mode:has(.auth-register-card) .auth-scroll-pane,
  html body.admin-mode.auth-page:has(.auth-register-card) .auth-scroll-pane {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
  }

  html.auth-form-open,
  html.auth-form-open body.user-mode.auth-mode.auth-form-open,
  html.auth-form-open body.admin-mode.auth-page.auth-form-open {
    height: 100% !important;
    overflow: hidden !important;
    background: transparent !important;
    background-color: transparent !important;
  }

  html body.user-mode.auth-mode.auth-form-open,
  html body.admin-mode.auth-page.auth-form-open {
    padding: 0 !important;
    margin: 0 !important;
    top: var(--dc-auth-shell-top, 0px) !important;
    height: var(--dc-auth-shell-h, 100%) !important;
    max-height: var(--dc-auth-shell-h, 100%) !important;
    background: transparent !important;
    background-color: transparent !important;
  }

  html body.user-mode.auth-mode.auth-form-open .wrap,
  html body.admin-mode.auth-page.auth-form-open .wrap {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
  }

  html body.user-mode.auth-mode.auth-form-open header.dc-app-header.dc-header-shell,
  html body.user-mode.auth-mode.auth-form-open header.dc-app-header.dc-role-auth,
  html body.admin-mode.auth-page.auth-form-open header.dc-app-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    z-index: var(--dc-header-z-index, 5002) !important;
    box-sizing: border-box !important;
  }

  html body.user-mode.auth-mode.auth-form-open .auth-scroll-pane,
  html body.admin-mode.auth-page.auth-form-open .auth-scroll-pane {
    padding-top: calc(var(--dc-auth-header-h, 76px) + var(--dc-safe-top)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }

  html.auth-form-open .dc-safe-top-chrome {
    background: #030304 !important;
    background-color: #030304 !important;
  }

  html body.user-mode.auth-mode .auth-scroll-pane::-webkit-scrollbar,
  html body.admin-mode.auth-page .auth-scroll-pane::-webkit-scrollbar {
    display: none;
  }

  html body.user-mode.auth-mode:not(:has(.auth-register-card)) .auth-scroll-pane:not(:has(.flash.danger)),
  html body.admin-mode.auth-page:not(:has(.auth-register-card)) .auth-scroll-pane:not(:has(.flash.danger)) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  html body.user-mode.auth-mode .auth-register-card,
  html body.admin-mode.auth-page .auth-register-card {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 14px 18px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html body.user-mode.auth-mode.auth-form-open .auth-register-card,
  html body.admin-mode.auth-page.auth-form-open .auth-register-card {
    width: 100% !important;
    max-width: none !important;
  }

  html body.user-mode.auth-mode .auth-register-card > p:last-of-type,
  html body.admin-mode.auth-page .auth-register-card > p:last-of-type {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    text-align: center !important;
  }

  html body.user-mode.auth-mode .auth-card:not(.auth-register-card),
  html body.admin-mode.auth-page .auth-card:not(.auth-register-card) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  html body.user-mode.auth-mode.auth-form-open .auth-card,
  html body.user-mode.auth-mode.auth-form-open .card,
  html body.user-mode.auth-mode:has(.auth-register-card) .auth-card,
  html body.user-mode.auth-mode:has(.auth-register-card) .card {
    margin: 0 !important;
  }

  html body.user-mode.auth-mode.auth-form-open .auth-register-form .register-submit,
  html body.user-mode.auth-mode.auth-form-open .auth-register-form button.register-submit,
  html body.user-mode.auth-mode.auth-form-open .auth-register-form .login-submit,
  html body.user-mode.auth-mode.auth-form-open .auth-register-form button.login-submit,
  html body.user-mode.auth-mode:has(.auth-register-card) .auth-register-form .register-submit,
  html body.user-mode.auth-mode:has(.auth-register-card) .auth-register-form button.register-submit,
  html body.user-mode.auth-mode:has(.auth-register-card) .auth-register-form .login-submit,
  html body.user-mode.auth-mode:has(.auth-register-card) .auth-register-form button.login-submit {
    margin-bottom: 12px !important;
  }

  body.user-mode.auth-mode .flash:not(.danger):not(.dc-flash-toast),
  body.admin-mode.auth-page .flash:not(.danger):not(.dc-flash-toast) {
    display: none !important;
  }

  body.user-mode.auth-mode .flash.danger,
  body.admin-mode.auth-page .flash.danger {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    box-sizing: border-box !important;
  }

  html body.user-mode.auth-mode .auth-register-card .auth-register-form input:not([type="checkbox"]):not([type="hidden"]),
  html body.user-mode.auth-mode .auth-login-card input:not([type="checkbox"]):not([type="hidden"]),
  html body.user-mode.auth-mode .user-login-card input:not([type="checkbox"]):not([type="hidden"]),
  html body.user-mode.auth-mode .auth-card textarea,
  html body.user-mode.auth-mode .auth-card select,
  html body.admin-mode.auth-page .auth-card input:not([type="checkbox"]):not([type="hidden"]),
  html body.admin-mode.auth-page .auth-card textarea,
  html body.admin-mode.auth-page .auth-card select {
    font-size: 16px !important;
  }

  /* Auth guest forms — phone / tablet landscape */
  @media (orientation: landscape) {
    html body.user-mode.auth-mode.auth-form-open header.dc-app-header.dc-header-shell,
    html body.user-mode.auth-mode.auth-form-open header.dc-app-header.dc-role-auth,
    html body.admin-mode.auth-page.auth-form-open header.dc-app-header {
      min-height: 52px !important;
      padding:
        calc(6px + var(--dc-safe-top))
        max(14px, env(safe-area-inset-right, 0px))
        6px
        max(14px, env(safe-area-inset-left, 0px)) !important;
      border-radius: 0 0 14px 14px !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-scroll-pane,
    html body.admin-mode.auth-page.auth-form-open .auth-scroll-pane {
      padding-top: calc(var(--dc-auth-header-h, 52px) + var(--dc-safe-top)) !important;
      padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
      padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card {
      width: 100% !important;
      max-width: min(920px, 100%) !important;
      margin-left: auto !important;
      margin-right: auto !important;
      padding:
        10px
        max(12px, env(safe-area-inset-right, 0px))
        calc(12px + env(safe-area-inset-bottom, 0px))
        max(12px, env(safe-area-inset-left, 0px)) !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-social-title,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-social-title {
      margin-bottom: 8px !important;
      font-size: 17px !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-social-panel,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-social-panel {
      margin-bottom: 4px !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-divider,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-divider {
      margin: 8px 0 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      column-gap: 12px !important;
      row-gap: 0 !important;
      align-items: start !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form > label:nth-of-type(1),
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form > label:nth-of-type(1) {
      grid-column: 1 !important;
      grid-row: 1 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form > input[name="full_name"],
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form > input[name="full_name"] {
      grid-column: 1 !important;
      grid-row: 2 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form > label:nth-of-type(2),
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form > label:nth-of-type(2) {
      grid-column: 2 !important;
      grid-row: 1 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form > input[name="phone"],
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form > input[name="phone"] {
      grid-column: 2 !important;
      grid-row: 2 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form > label:nth-of-type(3),
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form > label:nth-of-type(3) {
      grid-column: 1 !important;
      grid-row: 3 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form > input[name="login"],
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form > input[name="login"] {
      grid-column: 1 !important;
      grid-row: 4 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form > .auth-field-help,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form > .auth-field-help {
      grid-column: 1 !important;
      grid-row: 5 !important;
      margin-top: 4px !important;
      margin-bottom: 8px !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form > label:nth-of-type(4),
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form > label:nth-of-type(4) {
      grid-column: 2 !important;
      grid-row: 3 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form > input[name="password"],
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form > input[name="password"] {
      grid-column: 2 !important;
      grid-row: 4 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form > .auth-agreements,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form > .auth-agreements,
    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form > .register-submit,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form > .register-submit,
    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form > button.register-submit,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form > button.register-submit {
      grid-column: 1 / -1 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form.user-login-form > label:nth-of-type(1),
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form.user-login-form > label:nth-of-type(1) {
      grid-column: 1 !important;
      grid-row: 1 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form.user-login-form > input[name="login"],
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form.user-login-form > input[name="login"] {
      grid-column: 1 !important;
      grid-row: 2 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form.user-login-form > label:nth-of-type(2),
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form.user-login-form > label:nth-of-type(2) {
      grid-column: 2 !important;
      grid-row: 1 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form.user-login-form > input[name="password"],
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form.user-login-form > input[name="password"] {
      grid-column: 2 !important;
      grid-row: 2 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form.user-login-form > .auth-field-help,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form.user-login-form > .auth-field-help {
      display: none !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form.user-login-form > .remember-login-row,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form.user-login-form > .remember-login-row,
    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form.user-login-form > .login-submit,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form.user-login-form > .login-submit,
    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form.user-login-form > button.login-submit,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form.user-login-form > button.login-submit {
      grid-column: 1 / -1 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form.user-login-form > .remember-login-row,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form.user-login-form > .remember-login-row {
      grid-row: 3 !important;
      margin-top: 4px !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form.user-login-form > .login-submit,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form.user-login-form > .login-submit,
    html body.user-mode.auth-mode.auth-form-open .auth-register-card .auth-register-form.user-login-form > button.login-submit,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card .auth-register-form.user-login-form > button.login-submit {
      grid-row: 4 !important;
    }

    html body.user-mode.auth-mode.auth-form-open .auth-register-card > p:last-of-type,
    html body.admin-mode.auth-page.auth-form-open .auth-register-card > p:last-of-type {
      margin-top: 10px !important;
    }
  }
}/* --- Modals / sheets: viewport height + internal scroll --- */
.dc-nav-sheet__panel,
.admin-contest-delete-dialog,
body.admin-mode.admin-mobile-shell .contest-promotion-settings-dialog{
  max-height: min(90dvh, calc(var(--dc-vv-height, 100dvh) - 16px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}body.profile-user-open .pu-exchange__panel{
  max-height: min(88dvh, calc(var(--dc-vv-height, 100dvh) - var(--dc-safe-top))) !important;
  overflow: hidden !important;
}body.profile-user-open .pu-exchange__body{
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}body.profile-user-open .pu-withdraw__panel{
  width: min(100%, 440px) !important;
  max-width: 100% !important;
  max-height: min(88dvh, calc(var(--dc-vv-height, 100dvh) - 32px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}body.stickers-checkout-open .stickers-checkout__panel{
  max-height: min(88dvh, calc(var(--dc-vv-height, 100dvh) - env(safe-area-inset-bottom, 0px))) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}body.dc-keyboard-open .dc-nav-sheet__panel{
  max-height: min(calc(var(--dc-vv-height, 100dvh) - 8px), 90dvh) !important;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--dc-keyboard-offset, 0px)) !important;
}body.pu-exchange-open.dc-keyboard-open .pu-exchange,
body.pu-withdraw-open.dc-keyboard-open .pu-withdraw,
body.stickers-checkout-open.dc-keyboard-open .stickers-checkout{
  align-items: flex-end !important;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--dc-keyboard-offset, 0px)) !important;
}body.pu-exchange-open.dc-keyboard-open .pu-exchange__panel{
  max-height: min(calc(var(--dc-vv-height, 100dvh) - 12px), 88dvh) !important;
}body.pu-withdraw-open.dc-keyboard-open .pu-withdraw__panel,
body.stickers-checkout-open.dc-keyboard-open .stickers-checkout__panel{
  max-height: min(calc(var(--dc-vv-height, 100dvh) - var(--dc-keyboard-offset, 0px) - 12px), 88dvh) !important;
}body.profile-user-open.dc-keyboard-open .profile-page{
  padding-bottom: calc(var(--dc-mobile-content-bottom-reserve, 88px) + var(--dc-keyboard-offset, 0px)) !important;
}/* --- Tables on mobile (style.css forces min-width:900px on .card table) --- */
@media (max-width: 860px){
  .card table,
  .wrap > table,
  .wrap table,
  table.responsive-table,
  .admin-history-board table,
  .posts-history-card table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .card table thead,
  .wrap table thead,
  .admin-history-board table thead {
    white-space: nowrap;
  }
}/* --- Action rows: wrap instead of overflow --- */
@media (max-width: 767px){
  .profile-actions,
  .pu-wallet-actions,
  .pu-profile-actions,
  .admin-actions,
  .form-actions,
  .btn-row,
  [class*="__actions"]:not(.cp-contest-card__actions) {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .profile-actions .btn,
  .pu-wallet-actions .btn,
  .form-actions .btn,
  .btn-row .btn {
    flex: 1 1 auto !important;
    min-width: min(100%, 140px) !important;
    max-width: 100% !important;
  }
}/* --- Profile wallet: action buttons + exchange modes --- */
@media (max-width: 480px){
  body.profile-user-open .pu-wallet__actions .btn {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.profile-user-open .pu-exchange__modes,
  body.profile-user-open .pu-exchange__foot {
    min-width: 0 !important;
  }

  body.profile-user-open .pu-wallet-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.profile-user-open .pu-wallet-tabs::-webkit-scrollbar {
    display: none;
  }

  body.profile-user-open .pu-wallet-tabs .pu-wallet-tab {
    flex: 0 0 auto !important;
    min-width: max(76px, 22vw) !important;
  }
}/* --- Landscape short viewports --- */
@media (orientation: landscape) and (max-height: 520px){
  html body.user-mode.auth-mode:not(.admin-mode):not(.comments-mode):not(.dc-shell-open) .wrap {
    justify-content: flex-start !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  html body.user-mode:not(.auth-mode):not(.admin-mode) nav.user-bottom-nav.dc-bottom-nav .dc-bottom-nav__bar > .dc-bottom-nav__tab .dc-bottom-nav__label,
  html body.user-mode:not(.auth-mode):not(.admin-mode) nav.user-bottom-nav.dc-bottom-nav .dc-bottom-nav__bar > .dc-bottom-nav__tab .nav-label {
    font-size: 9px !important;
  }
}/* --- Admin mobile shell --- */
@media (max-width: 767px){
  body.admin-mode.admin-mobile-shell .wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--dc-content-inline) !important;
    padding-right: var(--dc-content-inline-end) !important;
  }

  body.admin-mode.admin-mobile-shell .admin-mobile-bottom-nav,
  body.admin-mode.admin-mobile-shell nav.dc-bottom-nav--admin,
  body.admin-mobile-shell .admin-mobile-bottom-nav,
  body.admin-mobile-shell nav.dc-bottom-nav--admin {
    width: 100% !important;
    max-width: min(100%, var(--dc-shell-max)) !important;
  }

  body.admin-mode.admin-mobile-shell .admin-contest-delete-dialog,
  body.admin-mode.admin-mobile-shell .contest-promotion-settings-dialog {
    width: min(calc(100vw - var(--dc-content-inline) - var(--dc-content-inline-end)), var(--dc-shell-max)) !important;
    max-width: 100% !important;
  }
}/* --- Stickers / legal / contests pages --- */
@media (max-width: 767px){
  body.stickers-page-open .stickers-vitrine,
  body.legal-page-open .legal-page,
  body.contests-public-open .cp-page,
  body.contest-user-open .cu-page,
  body.live-user-open .lu-page,
  body.profile-user-open .profile-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip;
  }
}/* --- Auth flash: keep inside wrap on narrow screens --- */
@media (max-width: 767px){
  body.user-mode.auth-mode .flash {
    left: var(--dc-content-inline) !important;
    right: var(--dc-content-inline-end) !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
}/* --- Unified project shell: fixed header + fixed bottom nav + scroll main --- */
body.user-mode:not(.auth-mode):not(.admin-mode):has(.dc-shell-main){
  overflow: hidden !important;
  height: var(--dc-layout-vh, 100dvh) !important;
  max-height: var(--dc-layout-vh, 100dvh) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}html:has(body.user-mode:not(.auth-mode):not(.admin-mode):has(.dc-shell-main)){
  overflow: hidden !important;
  height: 100% !important;
}body.user-mode:not(.auth-mode):not(.admin-mode):has(.dc-shell-main) .wrap{
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--dc-layout-vh, 100dvh) !important;
  max-height: var(--dc-layout-vh, 100dvh) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}body.user-mode:not(.auth-mode):not(.admin-mode):has(.dc-shell-main) header.dc-app-header{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  z-index: var(--dc-header-z-index, 5002) !important;
  flex: 0 0 auto !important;
}/* Bottom nav dock (position/background/border): authority in dc-bottom-nav.css */

body.user-mode:not(.auth-mode):not(.admin-mode):not(.feed-v2-surface):has(.dc-shell-main) .dc-shell-main{
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-top: 0 !important;
  padding-bottom: var(--dc-shell-nav-reserve) !important;
  padding-left: var(--dc-content-inline) !important;
  padding-right: var(--dc-content-inline-end) !important;
  box-sizing: border-box !important;
}@media (max-width: 899px){
  body.user-mode:not(.auth-mode):not(.admin-mode):has(.dc-shell-main) .dc-shell-top-guard {
    height: calc(var(--dc-safe-top) + 88px + var(--dc-shell-header-gap));
    min-height: calc(var(--dc-safe-top) + 88px + var(--dc-shell-header-gap));
  }

  @media (orientation: landscape) and (max-height: 520px) {
    body.user-mode:not(.auth-mode):not(.admin-mode):has(.dc-shell-main) .dc-shell-top-guard {
      height: var(--admin-header-height, calc(env(safe-area-inset-top, 0px) + 48px));
      min-height: var(--admin-header-height, calc(env(safe-area-inset-top, 0px) + 48px));
    }

    body.contests-public-open:has(.cp-topbar-shell) .dc-shell-top-guard,
body.contest-user-open:has(.cp-topbar-shell) .dc-shell-top-guard,
body.profile-user-open:has(.cp-topbar-shell) .dc-shell-top-guard {
      height: calc(
        var(--admin-header-height, calc(env(safe-area-inset-top, 0px) + 48px))
        + var(--dc-hub-pinned-bar-h, 34px)
        + var(--dc-hub-pinned-bar-gap, 6px)
      );
      min-height: calc(
        var(--admin-header-height, calc(env(safe-area-inset-top, 0px) + 48px))
        + var(--dc-hub-pinned-bar-h, 34px)
        + var(--dc-hub-pinned-bar-gap, 6px)
      );
    }
  }

  body.user-mode:not(.auth-mode):not(.admin-mode):not(.feed-v2-surface):has(.dc-shell-main) .dc-shell-main {
    padding-bottom: var(--dc-shell-nav-reserve) !important;
  }

  body.guest-home-open.user-mode:not(.auth-mode):not(.admin-mode):has(.dc-shell-main) .dc-shell-main {
    padding-bottom: var(--dc-shell-nav-reserve) !important;
    scroll-padding-bottom: var(--dc-shell-nav-reserve) !important;
  }
}/* Bottom nav bar/tab/label + desktop dock: authority in dc-bottom-nav.css */

/* Feed V2: panes scroll internally — cancel generic shell reserves */
body.feed-v2-surface.feed-publications-open:has(.dc-shell-main) .dc-shell-main{
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}body.feed-v2-surface:has(.dc-shell-main) .feed-v2-page{
  flex: 1 1 auto !important;
  min-height: 0 !important;
}body.feed-v2-surface.feed-publications-open:has(.dc-shell-main) .dc-shell-top-guard{
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  flex: 0 0 0 !important;
}/* Site shell pages (not Feed V2): use measured chrome from dc-viewport-keyboard.js */
body.dc-shell-open:not(.feed-v2-surface):not(.auth-form-open) .dc-shell-main{
  padding-bottom: var(--dc-chrome-nav-reserve, var(--dc-shell-nav-reserve));
  box-sizing: border-box;
}body.dc-premium-shell-open nav.user-bottom-nav.dc-bottom-nav{
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}/* Feed V2 layout: authority in feed-v2-responsive.css (loads after this file) */

/* Guest home: scroll lives in dc-shell-main, not body */
body.guest-home-open:has(.dc-shell-main){
  overflow: hidden !important;
  padding-bottom: 0 !important;
}body.guest-home-open:has(.dc-shell-main) .wrap{
  padding: 0 !important;
  min-height: 0 !important;
  height: var(--dc-layout-vh, 100dvh) !important;
  max-height: var(--dc-layout-vh, 100dvh) !important;
}body.guest-home-open:has(.dc-shell-main) .dc-shell-main{
  padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
  padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
}/* Guest home desktop: restore centered column (shell wrap uses max-width:100%) */
@media (min-width: 900px){
  body.guest-home-open.user-mode:not(.auth-mode):not(.admin-mode):has(.dc-shell-main) .wrap {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}@media (min-width: 1200px){
  body.guest-home-open.user-mode:not(.auth-mode):not(.admin-mode):has(.dc-shell-main) .wrap {
    max-width: 1180px !important;
  }
}body.guest-home-open:has(.dc-shell-main) .gh-ignite__badge,
body.guest-home-open:has(.dc-shell-main) .gh-ignite__headline{
  scroll-margin-top: 8px;
}/* PWA standalone: explicit 100dvh lock (redundant with shell defaults, keeps cold-start stable). */
@media (display-mode: standalone), (display-mode: fullscreen){
  @supports (height: 100dvh) {
    body.user-mode:not(.auth-mode):not(.admin-mode):has(.dc-shell-main),
    body.user-mode:not(.auth-mode):not(.admin-mode):has(.dc-shell-main) .wrap {
      height: 100dvh !important;
      max-height: 100dvh !important;
    }
  }
}/* Neutralize legacy wrap scroll padding when shell owns scrolling */
body.dc-shell-open.user-mode:not(.auth-mode) .wrap,
body.user-mode:not(.auth-mode):not(.admin-mode):has(.dc-shell-main):not(.feed-v2-surface) .wrap{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  scroll-padding-bottom: 0 !important;
}/* DREAMCARS lock marker: 20260614_dc_responsive_shell_v14_runtime */

/* --- Global: hide scrollbars, keep scroll --- */
*, *::before, *::after{
  scrollbar-width: none;
  -ms-overflow-style: none;
}*::-webkit-scrollbar{
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}/* Shell pages: no legacy body bottom pad (nav is fixed) */
body.user-mode:not(.auth-mode):not(.admin-mode):has(.dc-shell-main){
  padding-bottom: 0 !important;
}/* Public feed desktop (1024+): kill header spacer + fill central panes (loads last) */
@media (min-width: 1024px){
  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .wrap > .dc-shell-main {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .dc-shell-main > .dc-shell-top-guard {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    flex: 0 0 0 !important;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .dc-shell-main > .feed-v2-page {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .feed-v2-workspace.feed-v2-workspace--desktop-split {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    margin-top: 0 !important;
    gap: 2px !important;
    padding: 0 !important;
    align-items: stretch !important;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .feed-v2-pane-feed,
  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .feed-v2-pane-chat {
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    align-self: stretch !important;
  }
}/* iOS WebKit: fixed header inside .wrap must not be clipped by overflow:hidden */
html body.admin-mode.admin-mobile-shell .wrap{
  overflow-x: hidden !important;
  overflow-y: visible !important;
}html body.dc-pwa-installed.admin-mode.admin-mobile-shell::after{
  display: none !important;
  content: none !important;
  height: 0 !important;
  opacity: 0 !important;
}html body.dc-pwa-installed.admin-mode.admin-mobile-shell .admin-mobile-bottom-nav,
html body.dc-pwa-installed.admin-mode.admin-mobile-shell nav.admin-mobile-bottom-nav{
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}html body.admin-mode.admin-mobile-shell:not(:has(.admin-breadcrumb, .dashboard-breadcrumb, .breadcrumbs)) .wrap{
  padding-top: calc(var(--admin-header-height, 76px) + 6px) !important;
}html body.admin-mode.admin-mobile-shell:has(.admin-breadcrumb, .dashboard-breadcrumb, .breadcrumbs):not(.accounts-admin-page):not(.support-admin-page) .wrap{
  padding-top: calc(var(--admin-header-height, 76px) + var(--admin-breadcrumb-bar-h, 44px) + 10px) !important;
}html body.admin-mode.admin-mobile-shell.accounts-admin-page .wrap,
html body.admin-mode.admin-mobile-shell.support-admin-page:has(.admin-hub-breadcrumb) .wrap{
  padding-top: calc(
    var(--admin-header-height, 76px) + var(--dc-admin-vv-offset-top, 0px)
    + var(--adx-breadcrumb-h, 34px) + var(--adx-breadcrumb-gap, 6px)
  ) !important;
}html body.admin-mode.admin-mobile-shell.support-admin-page:not(:has(.admin-hub-breadcrumb)) .wrap{
  padding-top: calc(var(--admin-header-height, 76px) + 6px) !important;
}@media (min-width: 900px) and (min-height: 560px){
  html body.feed-v2-surface.feed-v2-desktop-active.feed-publications-open.admin-mode.site-feed-admin-page .wrap {
    padding-top: calc(var(--admin-header-height, 76px) + 6px) !important;
  }
}@media (orientation: landscape){
  html body.admin-mode.admin-mobile-shell .wrap > header.dc-app-header,
  html body.admin-mode.admin-mobile-shell header.dc-app-header,
  html body.admin-chrome-outside-wrap > header.dc-app-header {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    max-width: none !important;
    width: 100% !important;
  }
}/* Admin header outside .wrap — position only; shell layout in dc-app-header.css */
html body.admin-chrome-outside-wrap > header.dc-app-header,
html body.admin-chrome-outside-wrap > header.dc-app-header.dc-admin-chrome-root{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  translate: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 5002 !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
}html body.admin-chrome-outside-wrap.admin-mode.admin-mobile-shell .wrap{
  padding-top: calc(var(--admin-header-height, 76px) + 6px) !important;
}html body.admin-chrome-outside-wrap.admin-mode.admin-mobile-shell:has(.admin-breadcrumb, .dashboard-breadcrumb, .breadcrumbs):not(.accounts-admin-page):not(.support-admin-page) .wrap{
  padding-top: calc(var(--admin-header-height, 76px) + var(--admin-breadcrumb-bar-h, 44px) + 10px) !important;
}html body.admin-chrome-outside-wrap.admin-mode.admin-mobile-shell.accounts-admin-page .wrap,
html body.admin-chrome-outside-wrap.admin-mode.admin-mobile-shell.support-admin-page .wrap{
  padding-top: calc(var(--admin-header-height, 76px) + 6px) !important;
}/* DREAMCARS admin header lock: 20260613_dc_responsive_admin_header_fixed */

/* User header outside .wrap — position only; shell layout in dc-app-header.css */
html body.user-chrome-outside-wrap > header.dc-app-header,
html body.user-chrome-outside-wrap > header.dc-app-header.dc-user-chrome-root{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  translate: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 5002 !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
}/* Chrome outside .wrap — layout authority: dc-app-header.css + dc-hub-pinned-chrome.css */
@media (orientation: landscape){
  html body.user-chrome-outside-wrap > header.dc-app-header {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    max-width: none !important;
    width: 100% !important;
  }
}

html body.user-chrome-outside-wrap.contests-public-open > nav.cp-topbar-shell.dc-hub-pinned-bar[data-cp-hub-chrome],
html body.user-chrome-outside-wrap.contests-public-open > .cp-topbar-shell.dc-hub-pinned-bar[data-cp-hub-chrome] {
  position: fixed !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 4995 !important;
  pointer-events: auto !important;
}
/* CANONICAL HEADER SHELL — final cascade authority (after companion rules) */
html body header.dc-app-header.dc-header-shell.dc-header-logo-only:has(.header-subscribers-count){
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  justify-items:stretch!important;
  gap:1px 10px!important;
  min-height:var(--dc-header-shell-min-h,72px)!important;
  height:auto!important;
  padding:var(--dc-header-shell-pad-top,calc(10px + var(--dc-safe-top,0px))) var(--dc-header-shell-pad-x,14px) var(--dc-header-shell-pad-bottom,8px)!important;
  flex-direction:unset!important;
  flex-wrap:unset!important;
  justify-content:stretch!important;
  border-radius:var(--dc-header-shell-radius,0 0 20px 20px)!important;
}

html body header.dc-app-header.dc-header-shell{
  border-radius:var(--dc-header-shell-radius,0 0 20px 20px)!important;
}

html body header.dc-app-header.dc-header-shell .header-subscribers-count{
  font-size:var(--dc-header-shell-subscribers-size,10px)!important;
  line-height:1.25!important;
  font-weight:400!important;
  color:rgba(255,255,255,.48)!important;
}

html body header.dc-app-header.dc-header-shell .brand-app-icon{
  width:var(--dc-header-brand-icon,40px)!important;
  height:var(--dc-header-brand-icon,40px)!important;
  min-width:var(--dc-header-brand-icon,40px)!important;
  min-height:var(--dc-header-brand-icon,40px)!important;
  max-width:var(--dc-header-brand-icon,40px)!important;
  max-height:var(--dc-header-brand-icon,40px)!important;
}

/* Phone landscape: compact flush header (canonical shell above restores dc-app-header intent) */
@media (orientation: landscape) and (max-height: 520px) {
  html body.user-chrome-outside-wrap:not(.admin-mode) > header.dc-app-header.dc-header-shell,
  html body.user-chrome-outside-wrap:not(.admin-mode) header.dc-app-header.dc-header-shell.dc-header-logo-only:has(.header-subscribers-count) {
    --dc-header-shell-min-h: 40px;
    --dc-header-shell-radius: 0;
    --dc-header-brand-icon: 28px;
    min-height: 40px !important;
    height: auto !important;
    border-radius: 0 !important;
    padding: calc(4px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-left)) 4px max(10px, env(safe-area-inset-right)) !important;
    overflow: visible !important;
  }

  html body.contests-public-open > header.dc-app-header.dc-header-shell.dc-header-logo-only:has(.header-subscribers-count),
  html body.contests-public-open header.dc-app-header.dc-header-shell.dc-header-logo-only:has(.header-subscribers-count) {
    display: grid !important;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    justify-items: stretch !important;
    gap: 0 8px !important;
  }

  html body.contests-public-open header.dc-app-header.dc-header-shell .dc-header-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }

  html body.contests-public-open header.dc-app-header.dc-header-shell .dc-header-meta:not(:empty) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: auto !important;
    max-width: 100% !important;
  }

  html body.contests-public-open header.dc-app-header.dc-header-shell .header-subscribers-count {
    font-size: 9px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }
}

/* Community chat — dedicated page (no feed pane / FAB) */
body.community-chat-open.feed-v2-surface:has(.dc-shell-main) .feed-v2-page,
body.community-chat-open.feed-v2-surface:has(.dc-shell-main) .feed-v2-workspace {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.community-chat-open.feed-v2-surface:has(.dc-shell-main) .feed-v2-pane-chat {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
