@media (min-width: 768px) and (max-width: 1180px) {
  :root {
    --g22-tablet-shell-top: 70px;
    --g22-tablet-sidebar-width: clamp(11.75rem, 24vw, 13rem);
  }

  #root .group\/sidebar-wrapper {
    --sidebar-width: var(--g22-tablet-sidebar-width) !important;
    --sidebar-width-icon: 3rem !important;
  }

  body.g22-custom-chrome .g22-custom-header {
    height: var(--g22-tablet-shell-top) !important;
    padding: 0 0.9rem 0 calc(var(--g22-tablet-sidebar-width) + 0.85rem) !important;
  }

  #root header {
    min-height: var(--g22-tablet-shell-top) !important;
  }

  body.g22-custom-chrome .g22-main-column {
    padding-top: var(--g22-tablet-shell-top) !important;
  }

  body.g22-custom-chrome .group.peer.hidden.text-sidebar-foreground.md\:block > .relative.h-svh.w-\[--sidebar-width\],
  body.g22-custom-chrome .group.peer.hidden.text-sidebar-foreground.md\:block > .fixed.inset-y-0.z-10.hidden.h-svh.w-\[--sidebar-width\] {
    width: var(--g22-tablet-sidebar-width) !important;
    min-width: var(--g22-tablet-sidebar-width) !important;
  }

  body.g22-custom-chrome .group.peer.hidden.text-sidebar-foreground.md\:block > .relative.h-svh.w-\[--sidebar-width\] {
    height: calc(100svh - var(--g22-tablet-shell-top)) !important;
  }

  body.g22-custom-chrome .group.peer.hidden.text-sidebar-foreground.md\:block > .fixed.inset-y-0.z-10.hidden.h-svh.w-\[--sidebar-width\] {
    top: var(--g22-tablet-shell-top) !important;
    height: calc(100svh - var(--g22-tablet-shell-top)) !important;
  }

  body.g22-custom-chrome .g22-brand {
    gap: 0.62rem;
  }

  body.g22-custom-chrome .g22-brand-avatar {
    width: 38px;
    height: 38px;
    border-width: 1px;
    box-shadow: 0 0 0 2px rgba(14, 18, 28, 0.55);
  }

  body.g22-custom-chrome .g22-brand-wordmark {
    height: 16px;
  }

  body.g22-custom-chrome .g22-brand-sub {
    font-size: 0.64rem;
    letter-spacing: 0.05em;
  }

  body.g22-custom-chrome .g22-verified svg {
    width: 15px;
    height: 15px;
  }

  body.g22-custom-chrome .g22-header-right {
    min-width: 0;
    gap: 0.42rem;
    flex-wrap: nowrap;
  }

  body.g22-custom-chrome .g22-bell-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  body.g22-custom-chrome .g22-bell-btn svg {
    width: 16px;
    height: 16px;
  }

  body.g22-custom-chrome .g22-login-btn {
    min-width: 104px;
    height: 32px !important;
    padding: 0 0.72rem !important;
    font-size: 0.84rem !important;
    border-radius: 9px !important;
  }

  body.g22-custom-chrome .g22-login-name {
    max-width: 90px;
  }

  body.g22-custom-chrome .g22-header-pts {
    min-width: 102px;
    height: 32px;
    padding: 0 0.62rem;
    gap: 0.28rem;
    font-size: 0.8rem;
    border-radius: 9px;
  }

  body.g22-custom-chrome .g22-header-pts-coin {
    width: 16px;
    height: 16px;
  }

  body.g22-custom-chrome .g22-header-pts-info,
  body.g22-custom-chrome .g22-header-pts-refresh {
    width: 16px;
    height: 16px;
  }

  body.g22-custom-chrome .g22-header-pts-tooltip {
    right: -18px;
    width: min(190px, calc(100vw - 28px));
  }

  body.g22-custom-chrome .g22-header-avatar-btn {
    width: 34px;
    height: 34px;
  }

  body.g22-custom-chrome .g22-header-avatar-btn img {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  body.g22-custom-chrome .g22-logout-btn {
    height: 32px;
    padding: 0 0.72rem;
    border-radius: 9px;
    font-size: 0.74rem;
  }

  body.g22-custom-chrome [data-sidebar='menu-button'],
  body.g22-custom-chrome [data-sidebar='menu-sub-button'] {
    min-height: 40px !important;
  }

  body.g22-custom-chrome [data-sidebar='menu-button'] span,
  body.g22-custom-chrome [data-sidebar='menu-sub-button'] {
    font-size: 0.82rem !important;
  }

  body.g22-custom-chrome .g22-sidebar-topcards,
  body.g22-custom-chrome .g22-sidebar-topcards-row {
    gap: 0.38rem;
  }

  body.g22-custom-chrome .g22-sidebar-topcard {
    min-height: 40px;
    padding: 0.28rem 1.95rem 0.3rem 0.48rem;
    border-radius: 0.58rem;
  }

  body.g22-custom-chrome .g22-sidebar-topcard-kicker {
    font-size: 0.68rem;
  }

  body.g22-custom-chrome .g22-sidebar-topcard-title {
    font-size: 0.84rem;
  }

  body.g22-custom-chrome .g22-sidebar-topcard img {
    right: 0.32rem;
    height: 26px;
  }

  body.g22-custom-chrome .g22-notif-panel {
    width: min(280px, calc(100vw - 24px));
  }

  body.g22-custom-chrome .g22-giveaways-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.82rem;
  }

  body.g22-custom-chrome .g22-giveaway-card {
    grid-template-columns: 112px 1fr;
    min-height: 198px;
    padding: 0.68rem;
    gap: 0.62rem;
  }

  body.g22-custom-chrome .g22-giveaway-thumb {
    min-height: 170px;
  }

  body.g22-custom-chrome .g22-giveaway-title {
    font-size: 0.96rem;
  }

  body.g22-custom-chrome .g22-giveaway-sub {
    font-size: 0.82rem;
  }

  body.g22-custom-chrome .g22-giveaway-meta {
    font-size: 0.79rem;
  }
}

@media (min-width: 768px) and (max-width: 920px) {
  :root {
    --g22-tablet-sidebar-width: 11.25rem;
  }

  body.g22-custom-chrome .g22-custom-header {
    padding: 0 0.75rem 0 calc(var(--g22-tablet-sidebar-width) + 0.72rem) !important;
  }

  body.g22-custom-chrome .g22-login-name {
    max-width: 76px;
  }

  body.g22-custom-chrome .g22-header-pts {
    min-width: 94px;
    padding: 0 0.54rem;
  }

  body.g22-custom-chrome .g22-logout-btn {
    padding: 0 0.62rem;
  }

  body.g22-custom-chrome .g22-sidebar-topcards-row {
    grid-template-columns: 1fr;
  }

  body.g22-custom-chrome .g22-sidebar-topcard img {
    height: 24px;
  }

  body.g22-custom-chrome .g22-giveaways-grid {
    grid-template-columns: 1fr;
  }
}
