@media (max-width: 1536px) and (min-width: 1200px) {
  .event-filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .event-filter-country,
  .event-filter-query {
    grid-column: span 2;
  }

  .event-search-submit,
  .event-results-status {
    grid-column: 1 / -1;
  }

  .event-search-submit {
    width: fit-content;
    min-width: 200px;
  }
}

@media (min-width: 992px) and (max-width: 1399px) {
  .desktop-header {
    gap: 16px;
    padding: 0 24px;
  }

  .brand {
    min-width: 118px;
    letter-spacing: 0.18em;
  }

  .brand-word {
    display: none;
  }

  .search-pill {
    flex: 0 1 220px;
    max-width: 240px;
    min-width: 0;
    padding-inline: 12px;
  }

  .desktop-nav {
    gap: 14px;
    font-size: 0.9rem;
  }

  .header-actions {
    gap: 8px;
  }

  .desktop-header .header-actions > .k-button {
    width: 42px;
    min-height: 42px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }

  .desktop-header .header-actions > .k-button i {
    font-size: 1rem;
  }

  .desktop-header .pro-status-badge {
    min-width: 34px;
    min-height: 34px;
    padding: 6px 8px;
  }

  .desktop-header .pro-status-badge span {
    display: none;
  }
}

@media (max-width: 1199px) {
  :root {
    --sidebar-width: 88px;
    --right-width: 280px;
  }

  .desktop-header { padding: 0 28px; gap: 18px; }
  .brand { min-width: 120px; letter-spacing: 0.18em; }
  .brand-word { display: none; }
  .desktop-nav { gap: 16px; font-size: 0.9rem; }
  .search-pill { display: none; }
  .app-shell { gap: 20px; padding: 24px 24px 84px; }
  .side-link span, .side-link small, .sidebar-title, .sidebar .cta-copy { display: none; }
  .side-link { justify-content: center; padding: 14px 10px; }
  .video-stage {
    height: min(620px, calc(100vh - var(--header-height) - 52px));
    min-height: 460px;
  }
  .community-page #communitiesGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .community-detail-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .profile-grid { grid-template-columns: 380px minmax(0, 1fr); }
  .profile-grid .right-panel { position: static; grid-column: 1 / -1; grid-row: auto; }
  #profileStats { display: none; }
  .pro-main .pro-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .pro-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-avatar-zone {
    min-height: 174px;
  }
  .profile-inline-stats {
    display: grid;
  }
  .event-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-filter-country,
  .event-filter-query,
  .event-search-submit,
  .event-results-status {
    grid-column: 1 / -1;
  }
  .event-search-submit {
    width: 100%;
  }
  .pro-filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pro-filter-card .k-button {
    width: 100%;
  }

}

@media (min-width: 768px) and (max-width: 1199px) {
  body[data-page="dashboard"] .dashboard-stats-grid > [class*="col-"] {
    width: 50%;
  }

  body[data-page="dashboard"] .dashboard-stats-grid .k-card {
    height: 100%;
    min-height: 118px;
  }

  body[data-page="dashboard"] .dashboard-actions .k-button {
    flex: 1 1 180px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  body[data-page="dashboard"] .dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="dashboard"] .dashboard-main,
  body[data-page="dashboard"] .dashboard-profile-panel {
    grid-column: 1;
  }

  body[data-page="dashboard"] .dashboard-profile-panel {
    width: 100%;
  }

  body[data-page="dashboard"] .dashboard-profile-panel > .k-card {
    width: 100%;
  }
}

@media (min-width: 992px) and (max-width: 1399px) {
  body[data-page="pro"] .app-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    align-items: start;
  }

  body[data-page="pro"] .sidebar {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body[data-page="pro"] .pro-main {
    grid-column: 2;
    grid-row: 1;
  }

  body[data-page="pro"] .right-panel {
    display: grid;
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
  }

  body[data-page="pro"] .right-panel .k-card {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 991px) {
  .country-page {
    padding-inline: 18px;
  }

  .country-hero,
  .country-layout {
    grid-template-columns: 1fr;
  }

  .country-stat-grid,
  .country-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .country-hero-media {
    max-width: none;
    min-height: 0;
    height: auto;
    padding: 12px 12px 46px;
    order: -1;
  }

  .country-hero-photo-frame {
    height: clamp(220px, 48vw, 300px);
  }

  .country-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html,
  body {
    overflow-x: hidden;
  }
  .mobile-explorer-menu-button {
    display: inline-flex;
  }
  .mobile-explorer-kicker-row .section-kicker::before {
    width: 34px;
  }
  .desktop-header { display: none; }
  .mobile-header { display: flex; }
  .bottom-nav { display: grid; }
  .bottom-nav {
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }
  .bottom-nav a,
  .bottom-nav button {
    gap: 3px;
    font-size: 0.72rem;
  }
  .bottom-nav .create-fab {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    margin-top: -18px;
  }
  body { padding-bottom: 76px; }
  body::before { opacity: 0.08; }
  .app-shell,
  .app-shell.no-left,
  .app-shell.no-right {
    display: block;
    padding: 18px 16px 96px;
  }
  .sidebar,
  .right-panel {
    display: none;
  }
  .section-head { align-items: start; flex-direction: column; }
  body[data-page="dashboard"] .dashboard-actions {
    width: 100%;
  }
  .pro-section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    min-height: 0;
    padding-right: 0;
  }
  .pro-section-head .small-k {
    position: static;
    justify-self: start;
    margin: 0;
    text-align: left;
    transform: none;
  }
  #opportunityList {
    display: grid;
    gap: 10px;
  }
  .pro-opportunity-card {
    position: relative;
    z-index: 0;
  }
  .pro-opportunity-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .pro-opportunity-head .k-chip {
    align-self: flex-start;
  }
  .pro-opportunity-actions .k-button {
    width: auto;
    min-width: min(116px, 100%);
  }
  .pro-scroll-arrow {
    display: inline-flex;
    width: 34px;
    height: 34px;
  }
  body[data-page="pro"] .pro-carousel-shell {
    margin-inline: -6px;
    padding-inline: 32px;
  }
  body[data-page="pro"] .pro-scroll-arrow-prev {
    left: 0;
  }
  body[data-page="pro"] .pro-scroll-arrow-next {
    right: 0;
  }
  .pro-filter-card {
    grid-template-columns: 1fr;
  }
  .program-card-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
  .program-card-row .k-button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .pro-application-form {
    grid-template-columns: 1fr;
  }
  .pro-modal-actions {
    justify-content: stretch;
  }
  .pro-modal-actions .k-button {
    flex: 1 1 160px;
  }
  .community-stat-grid,
  .community-path-grid {
    grid-template-columns: 1fr;
  }
  .community-page #communitiesGrid {
    grid-template-columns: 1fr;
  }
  .community-detail-page {
    padding-top: 12px;
  }
  .pro-kpi-grid {
    grid-template-columns: 1fr;
  }
  .community-detail-hero {
    min-height: 0;
    border-radius: 22px;
  }
  .community-detail-cover::after {
    background: linear-gradient(180deg, rgba(31,31,31,0.72), rgba(31,31,31,0.86));
  }
  .community-detail-hero-content {
    min-height: 360px;
    padding: 20px;
  }
  .community-detail-page.is-tree-view .community-detail-hero-content {
    min-height: 250px;
  }
  .community-detail-title-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .community-avatar-xl {
    width: 72px;
    height: 72px;
    font-size: 1.7rem;
  }
  .community-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .community-about-grid,
  .community-member-grid,
  .community-management-grid,
  .community-detail-side {
    grid-template-columns: 1fr;
  }
  .community-tree-entry-card .k-button {
    width: 100%;
  }
  .community-tree-head-actions {
    width: 100%;
    justify-content: space-between;
  }
  .community-admin-details summary {
    align-items: start;
  }
  .community-admin-summary-meta {
    display: none;
  }
  .community-member-tools {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .community-member-search {
    flex: 1 1 185px;
    width: auto;
    max-width: 280px;
    padding: 7px 10px;
    font-size: 0.84rem;
  }
  .community-member-search input {
    min-height: 24px;
    font-size: 0.84rem;
  }
  .community-member-pager {
    justify-content: flex-end;
    margin-left: auto;
  }
  .community-member-pager .icon-btn {
    width: 32px;
    height: 32px;
  }
  .community-admin-member {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .community-permission-icons,
  .community-admin-member > .community-admin-actions,
  .community-admin-member > .community-request-actions,
  .community-admin-member > .k-button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .community-permission-icons {
    justify-content: flex-start;
  }
  .community-option-grid,
  .community-rule-add {
    grid-template-columns: 1fr;
  }
  .community-agenda-admin-card,
  .community-event-form-row {
    grid-template-columns: 1fr;
  }
  .community-post-form-footer,
  .community-composer-extras {
    padding-left: 0;
  }
  .community-post-form-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .community-member-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .community-member-actions {
    grid-column: 1 / -1;
    width: 100%;
  }
  .community-member-card .k-button {
    grid-column: 1 / -1;
    flex: 1;
  }
  .community-member-actions .icon-btn {
    flex: 0 0 42px;
  }
  .community-post-form-footer {
    display: grid;
    grid-template-columns: 1fr;
    padding-left: 0;
  }
  .community-post-form-footer .k-button {
    width: 100%;
  }
  .community-moderation-summary {
    grid-template-columns: 1fr;
  }
  .community-moderation-item-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .community-moderation-item-head small {
    white-space: normal;
  }
  .community-moderation-actions {
    justify-content: stretch;
  }
  .community-moderation-actions .k-button {
    flex: 1 1 140px;
  }
  .community-explore-card {
    display: none;
  }
  .community-directory .form-control {
    max-width: none;
    width: 100%;
  }
  .video-stage {
    height: auto;
    min-height: calc(100vh - 245px);
    border-radius: 24px;
  }
  .video-overlay { padding: 18px; }
  .video-actions-shell { right: 12px; padding: 10px 8px; }
  .video-actions { gap: 12px; }
  .video-creator-action { display: none; }
  .video-follow-action { display: none; }
  .video-step { display: none; }
  .video-meta { padding-right: 62px; }
  .video-play-toggle { width: 72px; height: 72px; font-size: 2.6rem; }
  .video-control-row {
    position: static;
    width: 100%;
    grid-template-columns: 34px 34px minmax(0, 1fr) auto 34px;
    gap: 8px;
    transform: none;
  }
  .video-time { font-size: 0.76rem; }
  .feed-create-dialog {
    align-items: stretch;
    min-height: 100%;
    margin: 0;
    max-width: none;
  }
  .feed-create-modal {
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
  }
  .feed-create-camera-view,
  .feed-create-editor {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .feed-create-topbar {
    padding: max(14px, env(safe-area-inset-top)) 14px 18px;
  }
  .feed-create-bottom-menu {
    grid-template-columns: 50px minmax(0, 1fr) 104px;
    gap: 12px;
    padding: 18px 14px calc(20px + env(safe-area-inset-bottom));
  }
  .feed-create-capture {
    width: 72px;
    height: 72px;
  }
  .feed-create-capture span {
    width: 52px;
    height: 52px;
  }
  .feed-create-mode-toggle button {
    min-width: 43px;
    padding: 7px 7px;
  }
  .feed-create-editor-body {
    max-height: calc(100vh - 94px);
    max-height: calc(100dvh - 94px);
    overflow-y: auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .feed-create-editor-body::-webkit-scrollbar {
    display: none;
  }
  .feed-create-preview {
    width: min(235px, 72vw);
    aspect-ratio: 9 / 16;
  }
  .feed-create-preview-wide {
    width: 100%;
    min-height: 150px;
    aspect-ratio: auto;
  }
  .feed-create-kind-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .feed-create-event-grid {
    grid-template-columns: 1fr;
  }
  .feed-create-event-grid input:nth-child(4),
  .feed-create-event-grid input:nth-child(5) {
    grid-column: auto;
  }
  body[data-page="feed"] {
    padding-bottom: 0;
    overflow: hidden;
    background: #050505;
  }
  body[data-page="feed"]::before {
    display: none;
  }
  body[data-page="feed"] .mobile-header {
    display: none;
  }
  body[data-page="feed"] .app-shell,
  body[data-page="feed"] .app-shell.no-left,
  body[data-page="feed"] .app-shell.no-right {
    max-width: none;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
  }
  body[data-page="feed"] .content-area {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  body[data-page="feed"] .content-area > .mobile-only,
  body[data-page="feed"] .content-area > section {
    display: none !important;
  }
  body[data-page="feed"] .content-area > .mobile-feed-topbar {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    z-index: 18;
    display: flex !important;
    justify-content: flex-end;
    pointer-events: none;
  }
  body[data-page="feed"] .mobile-feed-topbar .tabs-k {
    display: none;
  }
  body[data-page="feed"] .feed-mobile-tree-toggle {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(31, 31, 31, 0.46);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    font-weight: 800;
    backdrop-filter: blur(12px);
  }
  body[data-page="feed"] .video-stage:not(.is-native-ratio) {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    touch-action: none;
  }
  body[data-page="feed"] .video-stage:not(.is-native-ratio) .feed-video-player {
    object-fit: cover;
  }
  body[data-page="feed"] .video-overlay {
    padding: max(16px, env(safe-area-inset-top)) max(64px, calc(10px + env(safe-area-inset-right))) calc(140px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: linear-gradient(180deg, rgba(0,0,0,0.34), rgba(0,0,0,0.08) 34%, rgba(0,0,0,0.76));
  }
  body[data-page="feed"] .video-stage.is-native-ratio {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    touch-action: none;
  }
  body[data-page="feed"] .video-stage.is-native-ratio:not(.is-portrait) .feed-video-player,
  body[data-page="feed"] .video-stage.is-native-ratio:not(.is-portrait) .feed-image-player,
  body[data-page="feed"] .video-stage.is-native-ratio.is-landscape .feed-video-player,
  body[data-page="feed"] .video-stage.is-native-ratio.is-landscape .feed-image-player {
    object-fit: contain;
    object-position: center center;
    background: #050505;
  }
  body[data-page="feed"] .video-stage.is-native-ratio.is-portrait .feed-video-player,
  body[data-page="feed"] .video-stage.is-native-ratio.is-portrait .feed-image-player {
    object-fit: cover;
    object-position: center center;
    background: #050505;
  }
  body[data-page="feed"] .video-actions-shell {
    top: 41%;
    right: max(8px, env(safe-area-inset-right));
    bottom: auto;
    min-width: 62px;
    padding: 10px 8px;
    border-radius: 999px;
    background: rgba(31, 31, 31, 0.12);
    backdrop-filter: blur(4px);
    transform: translateY(-50%);
  }
  body[data-page="feed"] .video-actions {
    gap: 10px;
  }
  body[data-page="feed"] .video-actions button {
    width: auto;
    min-height: 0;
    padding: 0;
  }
  body[data-page="feed"] .video-actions button i.fs-2 {
    font-size: 1.55rem !important;
  }
  body[data-page="feed"] .video-actions button span {
    margin-top: 0;
    font-size: 0.68rem;
    line-height: 1.2;
  }
  body[data-page="feed"] .video-creator-action {
    display: grid;
    width: 42px;
    min-height: 42px;
  }
  body[data-page="feed"] .video-creator-action .avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  body[data-page="feed"] .video-follow-action {
    display: inline-flex;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    aspect-ratio: 1 / 1;
    margin-top: 0;
    border-radius: 50%;
    font-size: 1.05rem;
  }
  body[data-page="feed"] .video-meta {
    max-width: calc(100vw - 92px);
    padding-right: 0;
    margin-bottom: 10px;
  }
  body[data-page="feed"] .video-author-line {
    margin-bottom: 6px;
    padding: 0.34em 0.72em;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(31, 31, 31, 0.28);
    font-size: 0.88rem;
    backdrop-filter: blur(10px);
  }
  body[data-page="feed"] .video-caption {
    max-width: 100%;
    max-height: none;
    overflow: visible;
    gap: 5px;
    padding: 0.58em 0.72em;
    border-left: 3px solid var(--color-ochre);
    border-radius: 0 12px 12px 0;
    background:
      linear-gradient(90deg, rgba(212, 161, 61, 0.2), rgba(31, 31, 31, 0.08)),
      rgba(31, 31, 31, 0.28);
    font-size: 0.82rem !important;
    line-height: 1.42;
    backdrop-filter: blur(10px);
  }
  body[data-page="feed"] .video-caption.is-collapsed .video-caption-text {
    max-height: 2.95em;
  }
  body[data-page="feed"] .video-caption button {
    justify-self: start;
    padding: 0.05em 0.5em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(200, 107, 66, 0.76);
    box-shadow: 0 8px 18px rgba(31, 31, 31, 0.16);
  }
  body[data-page="feed"] .feed-create-dialog {
    align-items: stretch;
    min-height: 100%;
    margin: 0;
    max-width: none;
  }
  body[data-page="feed"] .feed-create-modal {
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
  }
  body[data-page="feed"] .feed-create-camera-view,
  body[data-page="feed"] .feed-create-editor {
    min-height: 100vh;
    min-height: 100dvh;
  }
  body[data-page="feed"] .feed-create-topbar {
    padding: max(14px, env(safe-area-inset-top)) 14px 18px;
  }
  body[data-page="feed"] .feed-create-bottom-menu {
    grid-template-columns: 50px minmax(0, 1fr) 104px;
    gap: 12px;
    padding: 18px 14px calc(20px + env(safe-area-inset-bottom));
  }
  body[data-page="feed"] .feed-create-capture {
    width: 72px;
    height: 72px;
  }
  body[data-page="feed"] .feed-create-capture span {
    width: 52px;
    height: 52px;
  }
  body[data-page="feed"] .feed-create-mode-toggle button {
    min-width: 43px;
    padding: 7px 7px;
  }
  body[data-page="feed"] .feed-create-editor-body {
    max-height: calc(100vh - 94px);
    max-height: calc(100dvh - 94px);
    overflow-y: auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  body[data-page="feed"] .feed-create-editor-body::-webkit-scrollbar {
    display: none;
  }
  body[data-page="feed"] .feed-create-preview {
    width: min(235px, 72vw);
    aspect-ratio: 9 / 16;
  }
  body[data-page="feed"] .feed-create-preview-wide {
    width: 100%;
    min-height: 150px;
    aspect-ratio: auto;
  }
  body[data-page="feed"] .feed-create-kind-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body[data-page="feed"] .feed-create-event-grid {
    grid-template-columns: 1fr;
  }
  body[data-page="feed"] .feed-create-event-grid input:nth-child(4),
  body[data-page="feed"] .feed-create-event-grid input:nth-child(5) {
    grid-column: auto;
  }
  body[data-page="feed"] .video-meta .fw-semibold,
  body[data-page="feed"] .video-meta > p:not(.video-caption):not(.fw-semibold) {
    margin-bottom: 5px;
    font-size: 0.76rem;
  }
  body[data-page="feed"] .video-country-name {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 0.72rem;
  }
  body[data-page="feed"] .video-country-lockup {
    max-width: calc(100vw - 120px);
  }
  body[data-page="feed"] .feed-country-picker {
    width: min(330px, calc(100vw - 24px));
    max-height: min(58vh, 470px);
    max-height: min(58dvh, 470px);
    touch-action: auto;
  }
  body[data-page="feed"] .feed-country-options {
    max-height: min(46vh, 360px);
    max-height: min(46dvh, 360px);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  body[data-page="feed"] .feed-country-options::-webkit-scrollbar,
  body[data-page="feed"] .country-modal-options::-webkit-scrollbar {
    display: none;
  }
  body[data-page="feed"] .video-country-flag img {
    width: 38px;
    height: 27px;
  }
  body[data-page="feed"] .video-control-row {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 9;
    width: min(360px, calc(100vw - 24px));
    grid-template-columns: 32px 32px minmax(0, 1fr) auto 32px;
    gap: 6px;
    padding: 6px;
    transform: translateX(-50%);
  }
  body[data-page="feed"] .video-mini-control {
    width: 32px;
    height: 32px;
  }
  body[data-page="feed"] .video-time {
    display: inline-flex;
    min-width: 70px;
    justify-content: center;
    font-size: 0.66rem;
    white-space: nowrap;
  }
  body[data-page="feed"] .bottom-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(5,5,5,0), rgba(5,5,5,0.64) 18%, rgba(5,5,5,0.86));
    backdrop-filter: blur(14px);
  }
  body[data-page="feed"] .bottom-nav a,
  body[data-page="feed"] .bottom-nav button {
    color: rgba(255, 255, 255, 0.76);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  }
  body[data-page="feed"] .bottom-nav .active {
    color: #fff;
  }
  body[data-page="feed"] .bottom-nav .create-fab {
    background: #fff;
    color: #111;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36);
  }
  body[data-page="feed"].feed-tree-mode {
    overflow: auto;
    background:
      radial-gradient(circle at top left, rgba(212, 161, 61, 0.12), transparent 30rem),
      linear-gradient(180deg, #fbf6ef 0%, var(--color-beige) 100%);
  }
  body[data-page="feed"].feed-tree-mode .app-shell,
  body[data-page="feed"].feed-tree-mode .app-shell.no-left,
  body[data-page="feed"].feed-tree-mode .app-shell.no-right {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 72px 16px 96px;
    overflow: visible;
  }
  body[data-page="feed"].feed-tree-mode .content-area {
    height: auto;
    overflow: visible;
  }
  body[data-page="feed"].feed-tree-mode #mainVideoStage,
  body[data-page="feed"].feed-tree-mode .feed-suggested-section,
  body[data-page="feed"].feed-tree-mode .feed-mobile-opportunity {
    display: none !important;
  }
  body[data-page="feed"].feed-tree-mode .feed-tree-panel {
    display: block !important;
    margin-top: 0 !important;
  }
  body[data-page="feed"].feed-tree-mode .feed-mobile-tree-toggle {
    border-color: rgba(122, 90, 69, 0.18);
    background: rgba(255, 250, 242, 0.94);
    color: var(--text-main);
    box-shadow: 0 12px 28px rgba(31, 31, 31, 0.14);
  }
  body[data-page="feed"].feed-tree-mode .bottom-nav {
    border-top: 1px solid var(--border-soft);
    background: rgba(250, 246, 239, 0.94);
    backdrop-filter: blur(14px);
  }
  body[data-page="feed"].feed-tree-mode .bottom-nav a,
  body[data-page="feed"].feed-tree-mode .bottom-nav button {
    color: var(--text-muted);
    text-shadow: none;
  }
  body[data-page="feed"].feed-tree-mode .bottom-nav .active {
    color: var(--color-terracotta);
  }
  body[data-page="feed"].feed-tree-mode .bottom-nav .create-fab {
    background: var(--color-terracotta);
    color: #fff;
    box-shadow: 0 12px 26px rgba(200, 107, 66, 0.28);
  }
  body[data-page="profile"] .bottom-nav {
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }
  body[data-page="profile"] .bottom-nav a,
  body[data-page="profile"] .bottom-nav button {
    gap: 3px;
    font-size: 0.72rem;
  }
  body[data-page="profile"] .bottom-nav .create-fab {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    margin-top: -18px;
  }
  .event-feature { grid-template-columns: 1fr; }
  .event-feature > .image-cover { min-height: 190px; }
  .event-search-panel {
    padding: 16px;
    border-radius: 16px;
  }
  .event-search-head {
    align-items: stretch;
    flex-direction: column;
  }
  .event-reset-button {
    width: fit-content;
  }
  .event-filter-grid,
  .subscription-grid {
    grid-template-columns: 1fr;
  }
  .subscription-plan-head {
    min-height: 0;
  }
  .event-filter-country,
  .event-filter-query,
  .event-search-submit,
  .event-results-status {
    grid-column: auto;
  }
  .event-filter-field .form-control,
  .event-filter-field .form-select,
  .event-country-search {
    min-height: 46px;
  }
  .event-active-filters {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .event-active-filters-scroll {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }
  .event-country-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    max-height: min(260px, 46vh);
  }
  body[data-page="events"] .event-card .card-img-top-k {
    height: 132px;
  }
  body[data-page="events"] .event-card-body {
    padding: 14px;
  }
  .modal-koryaan .modal-dialog {
    margin: 10px;
  }
  .modal-koryaan .modal-content {
    max-height: calc(100dvh - 20px);
    overflow: hidden;
  }
  .modal-koryaan .modal-body {
    overflow: auto;
  }
  .community-create-form .row {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
  }
  .opportunity-create-form,
  .event-create-form {
    gap: 10px;
  }
  .profile-cover { height: 170px; margin: 0 -16px; border-radius: 0 0 20px 20px; }
  .profile-grid {
    display: block;
    margin-top: 14px;
  }
  .profile-grid > * { margin-bottom: 16px; }
  body[data-page="profile"] .profile-grid .right-panel {
    display: block;
    position: static;
  }
  body[data-page="profile"] .profile-grid > section,
  body[data-page="profile"] .profile-grid .right-panel {
    grid-column: auto;
  }
  .profile-avatar-button { --profile-avatar-size: 112px; }
  .profile-avatar-zone { min-height: 154px; }
  .profile-inline-stats {
    display: grid;
    gap: 14px 58px;
  }
  .profile-inline-stat strong {
    font-size: 0.98rem;
  }
  .profile-inline-stat span {
    font-size: 0.64rem;
  }
  .avatar-lg { font-size: 2rem; }
  .tabs-k {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    overflow-x: visible;
  }
  .tabs-k button,
  .tabs-k a {
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 2px 10px;
    font-size: 0.68rem;
    white-space: normal;
    text-align: center;
  }
  .tabs-k i {
    display: inline-block;
    font-size: 1.1rem;
  }
  .tabs-k button span,
  .tabs-k a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .profile-edit-modal .modal-body {
    max-height: calc(100vh - 190px);
    max-height: calc(100dvh - 190px);
    padding: 14px;
  }
  .profile-edit-header,
  .profile-edit-modal .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .profile-edit-section {
    padding: 14px;
  }
  .profile-about-overview,
  .profile-community-card,
  .profile-career-form-grid {
    grid-template-columns: 1fr;
  }
  .profile-network-head {
    flex-direction: column;
  }
  .profile-community-card {
    align-items: start;
  }
  .profile-community-card .k-button {
    justify-self: start;
  }
  .profile-event-card {
    grid-template-columns: 1fr;
  }
  .profile-about-field-wide,
  .profile-career-current,
  .profile-career-description {
    grid-column: auto;
  }
  .profile-career-head {
    align-items: stretch;
    flex-direction: column;
  }
  .profile-career-head .k-button {
    width: 100%;
    justify-content: center;
  }
  .profile-career-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }
  .profile-career-dot {
    width: 34px;
    height: 34px;
  }
  .profile-career-list::before {
    left: 16px;
  }
  .profile-career-main {
    grid-template-columns: 1fr;
  }
  .profile-career-actions {
    justify-content: flex-start;
  }
  .profile-career-modal-backdrop {
    align-items: end;
    padding: 12px;
  }
  .profile-career-modal {
    max-height: 88vh;
    max-height: 88dvh;
    padding: 16px;
    border-radius: 18px;
  }
  .profile-career-modal-actions .k-button {
    flex: 1 1 140px;
  }
  body[data-page="profile"] .post-composer {
    padding: 12px;
  }
  body[data-page="profile"] .post-composer-main {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px !important;
  }
  body[data-page="profile"] .post-composer .avatar-sm {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    margin-top: 2px;
  }
  body[data-page="profile"] .post-composer-context {
    align-items: flex-start;
    margin-bottom: 9px;
  }
  body[data-page="profile"] .post-composer-context strong {
    font-size: 0.92rem;
    line-height: 1.25;
    text-align: right;
  }
  body[data-page="profile"] .post-composer-destination {
    width: calc(100% - 43px);
    margin-left: 43px;
  }
  body[data-page="profile"] .post-composer-destination button {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.76rem;
  }
  body[data-page="profile"] .post-composer textarea.form-control {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.38;
  }
  body[data-page="profile"] .post-composer-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-left: 43px;
  }
  body[data-page="profile"] .post-submit-button {
    min-width: 78px;
    min-height: 34px;
    padding: 7px 12px;
    font-size: 0.82rem;
  }
  body[data-page="profile"] .post-type-actions {
    gap: 8px;
    font-size: 0.74rem;
  }
  body[data-page="profile"] .post-type-actions button {
    min-height: 32px;
    padding: 6px 9px;
    white-space: nowrap;
  }
  .feed-create-dialog {
    width: calc(100vw - 14px);
    max-width: none;
    margin-inline: auto;
  }
  .feed-create-publisher {
    max-height: calc(100dvh - 14px);
    border-radius: 18px;
  }
  .feed-create-publisher .feed-create-editor-head {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 12px 9px;
  }
  .feed-create-identity {
    justify-content: flex-start;
  }
  .feed-create-identity .avatar-sm {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .feed-create-publisher .feed-create-editor-body {
    max-height: calc(100dvh - 88px);
    gap: 9px;
    padding: 0 12px 12px;
    overflow-y: auto;
  }
  .feed-create-destination button {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.78rem;
  }
  .feed-create-destination {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 16px;
  }
  .feed-create-community-options {
    max-height: 136px;
  }
  .feed-create-publisher .feed-create-caption {
    min-height: 104px;
    font-size: 0.9rem;
  }
  .feed-create-media-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .feed-create-media-choice {
    min-height: 66px;
    padding: 10px;
    border-radius: 15px;
  }
  .feed-create-media-choice i {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 13px;
  }
  .feed-create-kind-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .feed-create-kind-tabs::-webkit-scrollbar {
    display: none;
  }
  .feed-create-kind-tabs button {
    flex: 0 0 76px;
    min-height: 52px;
  }
  .feed-create-publisher .feed-create-footer {
    padding-top: 2px;
  }
  .feed-create-publisher .feed-create-footer button {
    width: 100%;
    min-height: 46px;
  }
  .auth-body { overflow: hidden; padding-bottom: 0; }
  .auth-page {
    position: relative;
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }
  .auth-panel {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    padding: 8px 14px 54px;
  }
  .auth-visual {
    position: fixed;
    inset: 0;
    z-index: 0;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    opacity: 0.34;
    pointer-events: none;
  }
  .auth-visual > * { display: none; }
  .auth-card {
    width: min(100%, 92vw);
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: clamp(12px, 2.2vh, 18px);
  }
  .auth-card .auth-brand {
    width: 100%;
    justify-content: center;
    margin-bottom: 14px !important;
  }
  .auth-brand .brand-logo {
    width: clamp(82px, 20vw, 112px);
    height: clamp(58px, 14vw, 78px);
  }
  .auth-card h2 {
    margin-bottom: clamp(3px, 0.7vh, 6px);
    font-size: clamp(1.15rem, 3.8vh, 1.55rem);
    text-align: center;
  }
  .auth-card p,
  .auth-card label,
  .auth-card a,
  .auth-card .k-button,
  .auth-card .form-control {
    font-size: clamp(0.72rem, 2.15vh, 0.9rem);
  }
  .auth-card .form-control { min-height: clamp(32px, 5vh, 42px); }
  .auth-card .k-button { min-height: clamp(32px, 4.8vh, 40px); }
  .auth-card .form-label.mt-3 { margin-top: clamp(5px, 1vh, 9px) !important; }
  .auth-card .my-3 { margin-top: clamp(5px, 1vh, 9px) !important; margin-bottom: clamp(5px, 1vh, 9px) !important; }
  .auth-card .mt-3 { margin-top: clamp(5px, 1vh, 9px) !important; }
  .auth-card .mt-4 { margin-top: clamp(6px, 1.2vh, 12px) !important; }
  .auth-copyright {
    left: 16px;
    right: 16px;
    bottom: 10px;
    font-size: 0.76rem;
  }
  .auth-switch {
    left: 16px;
    right: 16px;
    bottom: 10px;
    width: auto;
    font-size: 0.76rem;
  }
  .signup-card {
    width: min(100%, 94vw);
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    padding: clamp(9px, 1.55vh, 14px);
  }
  .signup-card h2 {
    font-size: clamp(1rem, 3.1vh, 1.35rem);
  }
  .signup-card .progress.my-3 {
    height: 5px !important;
  }
  .signup-card .row.g-3 {
    --bs-gutter-x: 8px;
    --bs-gutter-y: clamp(4px, 0.75vh, 8px);
  }
  .signup-card .form-label {
    margin-bottom: clamp(2px, 0.45vh, 5px);
  }
  .signup-card .form-control,
  .signup-card .form-select,
  .signup-card .country-picker-trigger,
  .signup-card .gender-option span {
    min-height: clamp(29px, 4.15vh, 38px);
    border-radius: 10px;
  }
  .signup-card .country-picker-trigger,
  .signup-card .gender-option span {
    padding-top: clamp(4px, 0.6vh, 7px);
    padding-bottom: clamp(4px, 0.6vh, 7px);
  }
  .signup-card .password-rules {
    gap: 4px;
    margin-top: 4px !important;
  }
  .signup-card .password-rules span,
  .signup-card .small-k,
  .signup-card .k-chip {
    font-size: clamp(0.62rem, 1.75vh, 0.78rem);
  }
  .signup-card .password-rules span {
    padding: 3px 7px;
  }
  .signup-card .k-chip {
    min-height: 26px;
    padding: 4px 8px;
  }
  .signup-card .d-flex.justify-content-between.mt-4 {
    margin-top: clamp(6px, 1vh, 10px) !important;
  }
  .footer-k { display: none; }
  .messages-panel {
    width: 80vw;
    min-width: 0;
    padding: 18px 14px;
  }
  .post-comment-form {
    grid-template-columns: 1fr;
  }
  .message-reply-form {
    grid-template-columns: minmax(0, 1fr) 42px;
  }
  .comment-replies,
  .comment-reply-form {
    margin-left: 22px;
  }
}

@media (max-width: 767px) {
  .country-page {
    padding: 14px 12px 92px;
  }

  .country-profile-shell {
    gap: 16px;
  }

  .country-directory-grid,
  .country-video-grid {
    grid-template-columns: 1fr;
  }

  .country-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .country-hero,
  .country-directory-hero,
  .country-media-section {
    border-radius: 18px;
  }

  .country-hero {
    gap: 16px;
    padding: 16px;
  }

  .country-hero-copy {
    gap: 10px;
  }

  .country-hero h1 {
    font-size: clamp(1.8rem, 10vw, 2.55rem);
    line-height: 1;
  }

  .country-hero-copy > p {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .country-hero-kicker-row {
    gap: 8px;
  }

  .country-hero-actions {
    flex-direction: column;
    gap: 9px;
  }

  .country-hero-actions .k-button {
    width: 100%;
    justify-content: center;
  }

  .country-hero-media {
    max-width: none;
    min-height: 0;
    height: auto;
    padding: 12px 12px 48px;
    border-radius: 16px;
    order: -1;
  }

  .country-hero-photo-frame {
    height: min(58vw, 236px);
    border-radius: 14px;
  }

  .country-hero-photo {
    object-position: center 40%;
    transform: scale(1.02);
  }

  .country-hero-phone {
    width: 100%;
    border-radius: 16px;
  }

  .country-stat-card {
    min-height: 132px;
    padding: 14px;
    border-radius: 16px;
  }

  .country-stat-card span {
    font-size: 0.72rem;
  }

  .country-stat-card strong {
    font-size: 1rem;
  }

  .country-layout,
  .country-side {
    gap: 12px;
  }

  .country-side {
    grid-template-columns: 1fr;
  }

  .country-detail-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 11px 0;
  }

  .country-hero-flag {
    width: 84px;
    height: 60px;
    left: 20px;
    bottom: 10px;
    border-width: 3px;
    border-radius: 10px;
  }

  .country-koryaan-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .country-loading-state {
    min-height: 300px;
    padding: 26px 18px;
    border-radius: 18px;
  }

  .country-loading-skeleton {
    grid-template-columns: 1fr;
    width: min(100%, 260px);
  }

  h1 { font-size: 2rem; }
  .brand-logo { width: 42px; height: 42px; }
  .mobile-header .brand-word { display: inline; font-size: 0.94rem; letter-spacing: 0.26em; }
  .mobile-header .brand { min-width: 0; gap: 8px; }
  .mobile-header .icon-btn { width: 38px; height: 38px; }
  .k-card.padded { padding: 18px; }
  body[data-page="pro"] .app-shell {
    padding-inline: 14px;
  }
  body[data-page="pro"] .pro-hero {
    gap: 14px;
  }
  body[data-page="pro"] .pro-hero > .d-flex:last-child,
  body[data-page="pro"] .pro-hero > .d-flex:last-child .k-button {
    width: auto;
  }
  body[data-page="pro"] .pro-opportunity-actions .k-button,
  body[data-page="pro"] #programList .k-button {
    flex-basis: auto;
  }
  .pro-profile-card {
    width: 170px;
    min-height: 224px;
  }
  .pro-directory-card {
    padding: 15px;
  }
  .pro-modal-backdrop {
    align-items: end;
    padding: 12px;
  }
  .pro-application-modal {
    max-height: 88vh;
    border-radius: 18px;
  }
  .video-stage {
    margin: 0 -2px;
    min-height: 680px;
  }
  body[data-page="feed"] .video-stage:not(.is-native-ratio) {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
  }
  body[data-page="feed"] .video-stage.is-native-ratio {
    border-radius: 0;
    margin: 0;
  }
  body[data-page="feed"] .video-play-toggle {
    width: 68px;
    height: 68px;
    font-size: 2.4rem;
  }
  body[data-page="feed"] .video-caption {
    font-size: 0.78rem !important;
  }
  body[data-page="feed"] .video-actions-shell {
    min-width: 58px;
    padding: 9px 7px;
  }
  body[data-page="feed"] .video-actions {
    gap: 9px;
  }
  body[data-page="feed"] .video-actions button i.fs-2 {
    font-size: 1.42rem !important;
  }
  body[data-page="feed"] .video-creator-action {
    width: 39px;
    min-height: 39px;
  }
  body[data-page="feed"] .video-creator-action .avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  body[data-page="feed"] .video-follow-action {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  body[data-page="feed"] .video-control-row {
    width: min(344px, calc(100vw - 18px));
    grid-template-columns: 30px 30px minmax(0, 1fr) auto 30px;
  }
  body[data-page="feed"] .video-time {
    min-width: 62px;
    font-size: 0.62rem;
  }
  .video-thumb { width: 178px; }
  .card-img-top-k { height: 166px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .toast-container-k {
    left: 14px;
    right: 14px;
    bottom: 88px;
  }
  .toast-koryaan { min-width: 0; }
  .bottom-nav .create-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .bottom-nav .create-fab i {
    display: block;
    line-height: 1;
  }
  .desktop-only { display: none !important; }
}

@media (max-width: 767px) and (max-height: 700px) {
  body[data-page="feed"] .video-actions-shell {
    top: 37%;
  }
  body[data-page="feed"] .video-overlay {
    padding-bottom: calc(126px + env(safe-area-inset-bottom));
  }
  body[data-page="feed"] .video-meta .fw-semibold,
  body[data-page="feed"] .video-meta > p:not(.video-caption):not(.fw-semibold) {
    display: none;
  }
}

@media (min-width: 992px) {
  .mobile-only { display: none !important; }
}

@container profile-content (min-width: 561px) {
  body[data-page="profile"] .tabs-k {
    display: flex;
    grid-template-columns: none;
    gap: clamp(12px, 2.2cqw, 26px);
    overflow-x: auto;
  }
  body[data-page="profile"] .tabs-k button,
  body[data-page="profile"] .tabs-k a {
    display: inline-block;
    min-width: auto;
    padding: 16px 0 14px;
    font-size: 0.88rem;
    white-space: nowrap;
  }
  body[data-page="profile"] .tabs-k i {
    display: none;
  }
  body[data-page="profile"] .tabs-k button span,
  body[data-page="profile"] .tabs-k a span {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }
}

@container profile-content (max-width: 560px) {
  body[data-page="profile"] .tabs-k {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    overflow-x: visible;
  }
  body[data-page="profile"] .tabs-k button,
  body[data-page="profile"] .tabs-k a {
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 2px 10px;
    font-size: 0.68rem;
    white-space: normal;
    text-align: center;
  }
  body[data-page="profile"] .tabs-k i {
    display: inline-block;
    font-size: 1.1rem;
  }
  body[data-page="profile"] .tabs-k button span,
  body[data-page="profile"] .tabs-k a span {
    display: none;
  }
}
