/* Friend page: replace legacy negative-margin columns with stable grids. */
.space-friend-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.space-friend-layout .container-area-left,
.space-friend-layout .container-area-right {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}
.space-friend-layout .bg-box-radius {
  overflow: hidden;
  background: #fff;
}
.friend-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 263px;
  gap: 20px;
  padding-right: 0 !important;
}
.friend-content-layout .friend-tools {
  grid-column: 2;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}
.friend-content-layout .friend-list-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.space-friend-layout .tab-box {
  display: flex;
  flex-wrap: wrap;
}
.space-friend-layout #friend_ul .buddy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.space-friend-layout #friend_ul .buddy > li {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .space-friend-layout {
    display: block;
    width: auto !important;
    margin: 10px 6px !important;
  }
  .space-friend-layout .container-area-left,
  .space-friend-layout .container-area-right {
    width: 100% !important;
  }
  .space-friend-layout .container-area-left {
    margin-bottom: 10px;
  }
  .friend-content-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .friend-content-layout .friend-list-main {
    order: 1;
  }
  .friend-content-layout .friend-tools {
    order: 2;
    width: 100% !important;
  }
  .space-friend-layout .tab-menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .space-friend-layout .tab-box {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
  }
  .space-friend-layout .tab-box li {
    flex: 0 0 auto;
  }
  .space-friend-layout .centerbox1,
  .space-friend-layout .bg-box-radius {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
  .space-friend-layout #friend_ul .buddy {
    grid-template-columns: 1fr;
  }
  .space-friend-layout .tbmu .y,
  .space-friend-layout .tbmu .z {
    float: none !important;
    display: block;
  }
  .space-friend-layout .tfm,
  .space-friend-layout .tfm tbody,
  .space-friend-layout .tfm tr,
  .space-friend-layout .tfm th,
  .space-friend-layout .tfm td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
}

/* Space module layout: isolate home pages from legacy fixed-width float rules. */
.home-account-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-areas: "nav main";
  gap: 20px;
  align-items: start;
  margin-top: 20px;
  background: transparent !important;
}
.home-account-main {
  grid-area: main;
  min-width: 0;
}
.home-account-nav {
  grid-area: nav;
  min-width: 0;
}
.home-account-card,
.home-account-nav .tbn,
#nv_home #ct.ct2_a:has(> .appl) > .appl .tbn,
.space-friend-layout > .container-area-left .tbn {
  border: 1px solid #eceff2;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 4px 18px rgba(25, 35, 45, 0.04);
}
.home-account-card {
  min-height: 420px;
  padding: 22px 26px 28px;
}
.home-account-card > .mt {
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid #eef0f2;
  font-size: 20px;
  line-height: 1.4;
}
.home-account-nav .tbn,
#nv_home #ct.ct2_a:has(> .appl) > .appl .tbn,
.space-friend-layout > .container-area-left .tbn {
  overflow: hidden;
  padding: 8px 0 12px;
}
.home-account-nav .tbn .mt,
#nv_home #ct.ct2_a:has(> .appl) > .appl .tbn .mt,
.space-friend-layout > .container-area-left .tbn .mt {
  height: auto;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  font-size: 17px;
  line-height: 24px;
}
.home-account-nav .tbn li,
#nv_home #ct.ct2_a:has(> .appl) > .appl .tbn li,
.space-friend-layout > .container-area-left .tbn li {
  display: flex;
  align-items: center;
  height: auto;
  min-height: 38px;
  margin: 2px 8px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  line-height: 1.35;
}
.home-account-nav .tbn li.a,
#nv_home #ct.ct2_a:has(> .appl) > .appl .tbn li.a,
.space-friend-layout > .container-area-left .tbn li.a {
  background: #eef8f3;
}
.home-account-nav .tbn li a,
#nv_home #ct.ct2_a:has(> .appl) > .appl .tbn li a,
.space-friend-layout > .container-area-left .tbn li a {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  overflow: hidden;
  color: #46515b;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-account-nav .tbn li.a a,
#nv_home #ct.ct2_a:has(> .appl) > .appl .tbn li.a a,
.space-friend-layout > .container-area-left .tbn li.a a {
  color: #168754;
  font-weight: 600;
}
.home-account-nav .tbn li em {
  flex: 0 0 auto;
  margin-left: 10px;
}
.home-notice-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  margin: 0 0 12px;
  padding: 0 0 8px;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.home-notice-tabs li {
  float: none;
  flex: 0 0 auto;
}
.home-notice-tabs li.y {
  order: 99;
  margin-left: auto;
}
.home-notice-list .nts > dl {
  position: relative;
  min-height: 52px;
  margin: 0;
  padding: 18px 42px 18px 72px;
  border-bottom: 1px solid #eef0f2;
  box-sizing: border-box;
}
.home-notice-list .nts > dl:last-child {
  border-bottom: 0;
}
.home-notice-list .nts > dl > .m.avt {
  position: absolute;
  top: 18px;
  left: 10px;
  float: none;
  margin: 0;
}
.home-notice-list .nts > dl > .m.avt img {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
}
.home-notice-list .nts dt {
  min-height: 22px;
  margin: 0 0 5px;
}
.home-notice-list .nts .ntc_body {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.75;
}
.home-notice-list .nts dt .d {
  position: absolute;
  top: 18px;
  right: 10px;
}

/* Standard space pages using Discuz's legacy ct2/ct2_a wrappers. */
#nv_home #ct.ct2_a:has(> .appl) {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  background: transparent !important;
}
#nv_home #ct.ct2_a:has(> .appl) > .mn {
  grid-column: 2;
  grid-row: 1;
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 20px 24px !important;
  box-sizing: border-box;
}
#nv_home #ct.ct2_a:has(> .appl) > .appl {
  grid-column: 1;
  grid-row: 1;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}
#nv_home #ct.ct2:has(> .sd) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}
#nv_home #ct.ct2:has(> .sd) > .mn,
#nv_home #ct.ct2:has(> .sd) > .sd {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  box-sizing: border-box;
}
#nv_home #ct.ct2:has(> .sd) > .mn {
  grid-column: 1;
}
#nv_home #ct.ct2:has(> .sd) > .sd {
  grid-column: 2;
}
.space-friend-layout > .container-area-left {
  min-width: 0;
}
.space-friend-layout > .container-area-right {
  min-width: 0;
}
.friend-content-layout {
  grid-template-columns: minmax(0, 1fr) 230px;
}
.friend-content-layout .friend-tools .px {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 980px) and (min-width: 769px) {
  .home-account-layout,
  #nv_home #ct.ct2_a:has(> .appl),
  .space-friend-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 14px;
  }
  .friend-content-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .home-account-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: auto !important;
    margin: 10px 4px !important;
  }
  .home-account-nav {
    order: 1;
    width: 100%;
  }
  .home-account-main {
    order: 2;
    width: 100%;
  }
  .home-account-card {
    min-height: 0;
    padding: 14px 10px 20px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .home-account-card > .mt {
    margin-bottom: 12px;
    padding: 0 4px 12px;
    font-size: 18px;
  }
  .home-account-nav .tbn,
  #nv_home #ct.ct2_a:has(> .appl) > .appl .tbn,
  .space-friend-layout > .container-area-left .tbn {
    padding: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .home-account-nav .tbn .mt,
  #nv_home #ct.ct2_a:has(> .appl) > .appl .tbn .mt,
  .space-friend-layout > .container-area-left .tbn .mt {
    display: none;
  }
  .home-account-nav .tbn ul,
  #nv_home #ct.ct2_a:has(> .appl) > .appl .tbn ul,
  .space-friend-layout > .container-area-left .tbn ul {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 6px 4px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .home-account-nav .tbn li,
  #nv_home #ct.ct2_a:has(> .appl) > .appl .tbn li,
  .space-friend-layout > .container-area-left .tbn li {
    flex: 0 0 auto;
    min-height: 34px;
    margin: 0;
  }
  .home-account-nav .tbn li a,
  #nv_home #ct.ct2_a:has(> .appl) > .appl .tbn li a,
  .space-friend-layout > .container-area-left .tbn li a {
    padding: 8px 11px;
  }
  .home-account-nav .tbn li em {
    display: none;
  }
  .home-notice-tabs li.y {
    margin-left: 0;
  }
  .home-notice-list .nts > dl {
    min-height: 44px;
    padding: 14px 30px 14px 52px;
  }
  .home-notice-list .nts > dl > .m.avt {
    top: 14px;
    left: 4px;
  }
  .home-notice-list .nts > dl > .m.avt img {
    width: 38px;
    height: 38px;
  }
  .home-notice-list .nts dt .d {
    top: 14px;
    right: 4px;
  }
  #nv_home #ct.ct2_a:has(> .appl),
  #nv_home #ct.ct2:has(> .sd) {
    display: block;
    width: auto !important;
    margin-right: 4px !important;
    margin-left: 4px !important;
  }
  #nv_home #ct.ct2_a:has(> .appl) > .mn,
  #nv_home #ct.ct2_a:has(> .appl) > .appl,
  #nv_home #ct.ct2:has(> .sd) > .mn,
  #nv_home #ct.ct2:has(> .sd) > .sd {
    width: 100% !important;
    margin: 0 0 10px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }
  #nv_home #ct.ct2_a:has(> .appl) > .appl {
    display: block;
  }
  .space-friend-layout {
    margin-right: 4px !important;
    margin-left: 4px !important;
  }
  .space-friend-layout > .container-area-left {
    margin-bottom: 10px;
  }
  .friend-content-layout .friend-tools {
    justify-self: stretch;
  }
}

/* Personal thread/favorite pages that use the theme's custom side navigation. */
.space-section-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.space-section-layout > .container-area-left,
.space-section-layout > .container-area-right {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}
.space-section-layout > .container-area-left .tbn {
  overflow: hidden;
  padding: 8px 0 12px;
  border: 1px solid #eceff2;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 4px 18px rgba(25, 35, 45, 0.04);
}
.space-section-layout > .container-area-left .tbn .mt {
  height: auto;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  font-size: 17px;
  line-height: 24px;
}
.space-section-layout > .container-area-left .tbn li {
  height: auto;
  min-height: 38px;
  margin: 2px 8px;
  padding: 0;
  border: 0;
  border-radius: 5px;
}
.space-section-layout > .container-area-left .tbn li.a {
  background: #eef8f3;
}
.space-section-layout > .container-area-left .tbn li a {
  display: block;
  padding: 10px 12px;
  overflow: hidden;
  color: #46515b;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.space-section-layout > .container-area-left .tbn li.a a {
  color: #168754;
  font-weight: 600;
}
.space-section-layout > .container-area-right > .bg-box-radius {
  overflow: hidden;
  border: 1px solid #eceff2;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
}
.space-side-profile {
  margin-bottom: 12px;
  padding: 18px 12px;
  border: 1px solid #eceff2;
  border-radius: 8px;
  text-align: center;
  background: #fff;
}
.space-side-avatar,
.space-side-avatar img {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
}
.space-side-avatar img {
  object-fit: cover;
}
.space-side-name {
  margin-top: 10px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.space-side-profile-link {
  display: inline-block;
  margin-top: 6px;
  color: #168754;
}

@media (max-width: 980px) and (min-width: 769px) {
  .space-section-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .space-section-layout {
    display: block;
    width: auto !important;
    margin: 10px 4px !important;
  }
  .space-section-layout > .container-area-left,
  .space-section-layout > .container-area-right {
    width: 100% !important;
  }
  .space-section-layout > .container-area-left {
    margin-bottom: 10px !important;
  }
  .space-section-layout > .container-area-left .tbn {
    padding: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .space-section-layout > .container-area-left .tbn .mt {
    display: none;
  }
  .space-section-layout > .container-area-left .tbn ul {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 6px 4px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .space-section-layout > .container-area-left .tbn li {
    flex: 0 0 auto;
    min-height: 34px;
    margin: 0;
  }
  .space-section-layout > .container-area-left .tbn li a {
    padding: 8px 11px;
  }
  .space-section-layout > .container-area-right > .bg-box-radius {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .space-section-layout .centerbox1,
  .space-section-layout .middle-title-wrap,
  .space-section-layout .tab-menu-info {
    padding-right: 8px !important;
    padding-left: 8px !important;
    box-sizing: border-box;
  }
}

/* Shared public-space body opened by space_menu.htm. */
.space-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.space-profile-layout > .space-profile-sidebar {
  position: static !important;
  grid-column: 2;
  grid-row: 1;
  width: auto !important;
  min-width: 0;
  margin-top: 10px;
}
.space-profile-layout .space-profile-sidebar-inner {
  width: 100% !important;
}
.space-profile-layout > .image_contain {
  grid-column: 1;
  grid-row: 1;
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin-top: 10px;
  box-sizing: border-box;
}
.space-profile-layout .space_boxs {
  width: auto !important;
  min-width: 0;
}
.space-profile-layout img,
.space-section-layout img,
.home-account-layout img,
.space-friend-layout img {
  max-width: 100%;
}

@media (max-width: 980px) and (min-width: 769px) {
  .space-profile-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
  }
  .space-profile-layout > .image_contain {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 768px) {
  .space-profile-layout {
    display: flex;
    flex-direction: column;
    width: auto !important;
    min-height: 0 !important;
    margin-right: 4px !important;
    margin-left: 4px !important;
  }
  .space-profile-layout > .image_contain {
    order: 1;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 12px 8px 18px !important;
    border-radius: 0;
  }
  .space-profile-layout > .space-profile-sidebar {
    order: 2;
    width: 100% !important;
    margin-top: 10px;
  }
  .space-profile-layout .space_boxs,
  .space-profile-layout .centerbox1,
  .space-profile-layout .bm,
  .space-profile-layout .bm_c {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  .space-profile-layout .space-profile-sidebar > div,
  .space-profile-layout .space-profile-sidebar-inner > div {
    max-width: 100%;
    box-sizing: border-box;
  }
  .space_nav {
    overflow: hidden;
  }
  .space_nav .tb_1,
  .tab1 > ul {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .tab1 {
    float: none !important;
    width: 100%;
    overflow: hidden;
  }
  .tab1 li {
    float: none !important;
    flex: 0 0 auto;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
  .person_fans {
    display: none;
  }
}

/* Keep two-column layouts inside the viewport on desktop and tablet. */
@media (min-width: 769px) {
  .home-account-layout,
  .space-friend-layout,
  .space-section-layout,
  .space-profile-layout,
  #nv_home #ct.ct2_a:has(> .appl),
  #nv_home #ct.ct2:has(> .sd) {
    width: calc(100% - 24px) !important;
    max-width: 1200px;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box;
  }
}
#nv_home #ct.ct2_a:has(> .appl) > .mn .tfm,
#nv_home #ct.ct2_a:has(> .appl) > .mn form,
#nv_home #ct.ct2_a:has(> .appl) > .mn textarea {
  max-width: 100%;
  box-sizing: border-box;
}
#nv_home #ct.ct2_a:has(> .appl) > .mn input[type="text"],
#nv_home #ct.ct2_a:has(> .appl) > .mn input[type="password"] {
  max-width: 100%;
  box-sizing: border-box;
}

/* Layout integrity: clearfix pseudo-elements must not become grid/flex items. */
.space-friend-layout::before,
.space-friend-layout::after,
.friend-content-layout::before,
.friend-content-layout::after,
.home-account-layout::before,
.home-account-layout::after,
.space-section-layout::before,
.space-section-layout::after,
.space-profile-layout::before,
.space-profile-layout::after,
#nv_home #ct.ct2_a::before,
#nv_home #ct.ct2_a::after,
#nv_home #ct.ct2::before,
#nv_home #ct.ct2::after,
.follow-space-main .post-works::before,
.follow-space-main .post-works::after {
  display: none !important;
  content: none !important;
}

.space-friend-layout {
  grid-template-areas: "friend-nav friend-main";
}
.space-friend-layout > .container-area-left {
  grid-area: friend-nav;
}
.space-friend-layout > .container-area-right {
  grid-area: friend-main;
}

.space-profile-layout > .follow-space-main {
  overflow: hidden;
}
.follow-space-main .post-works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: auto !important;
  margin: 20px 0 0 !important;
}
.follow-space-main .post-works > li {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}
.follow-space-main .post-works .cover,
.follow-space-main .post-works .cover a,
.follow-space-main .post-works .cover img {
  display: block;
  width: 100% !important;
  max-width: none;
}

@media (max-width: 980px) and (min-width: 769px) {
  .follow-space-main .post-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .space-friend-layout {
    grid-template-areas: none;
  }
  .follow-space-main .post-works {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Explicit fallback for legacy account pages; avoids relying on :has(). */
#nv_home .home-legacy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
  background: transparent !important;
}
#nv_home .home-legacy-layout::before,
#nv_home .home-legacy-layout::after {
  display: none !important;
  content: none !important;
}
#nv_home .home-legacy-layout > .appl {
  grid-column: 1;
  grid-row: 1;
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}
#nv_home .home-legacy-layout > .mn {
  grid-column: 2;
  grid-row: 1;
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 20px 24px !important;
  box-sizing: border-box;
}
#nv_home .home-legacy-layout > .appl .tbn {
  overflow: hidden;
  padding: 8px 0 12px;
  border: 1px solid #eceff2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(25, 35, 45, 0.04);
  box-sizing: border-box;
}
#nv_home .home-legacy-layout > .appl .tbn .mt {
  height: auto;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  font-size: 17px;
  line-height: 24px;
}
#nv_home .home-legacy-layout > .appl .tbn li {
  height: auto;
  min-height: 38px;
  margin: 2px 8px;
  padding: 0;
  border: 0;
  border-radius: 5px;
}
#nv_home .home-legacy-layout > .appl .tbn li.a { background: #eef8f3; }
#nv_home .home-legacy-layout > .appl .tbn li a {
  display: block;
  padding: 10px 12px;
  overflow: hidden;
  color: #46515b;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#nv_home .home-legacy-layout > .appl .tbn li.a a {
  color: #168754;
  font-weight: 600;
}

/* Shared space-menu details extracted from inline template CSS. */
#nv_home .p_pop.facel {
  width: 300px;
  margin-top: 10px;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
#nv_home .p_pop.facel img { margin: 8px 5px; }
#nv_home .p_pop.facel li { display: inline; }
#nv_home .v-wall .bbda {
  padding: 30px 0 20px;
  border-bottom: 1px solid #f1f1f1;
}
#nv_home .v-wall .m.avt {
  float: left;
  margin-right: 20px;
}
#nv_home .v-wall .m.avt img {
  padding: 0;
  border: 0;
  border-radius: 50%;
}
#nv_home .v-wall dt span.y.xw0 { display: none; }
#nv_home .v-wall dd {
  margin-top: 12px;
  margin-bottom: 30px;
  line-height: 24px;
}
#nv_home .v-wall dt a {
  margin-right: 20px;
  color: #444;
  font-size: 14px;
  font-weight: 600;
}
#nv_home .v-wall span.xg1.xw0 {
  margin-right: 10px;
  color: #bbb;
  font-size: 12px;
}

/* Prevent fixed legacy controls and media from forcing either column wider. */
#nv_home .home-account-layout *,
#nv_home .home-legacy-layout *,
#nv_home .space-friend-layout *,
#nv_home .space-section-layout *,
#nv_home .space-profile-layout * {
  box-sizing: border-box;
}
#nv_home .home-account-main,
#nv_home .home-legacy-layout > .mn,
#nv_home .space-friend-layout > .container-area-right,
#nv_home .space-section-layout > .container-area-right,
#nv_home .space-profile-layout > .image_contain {
  overflow-wrap: anywhere;
}
#nv_home textarea,
#nv_home input[type="text"],
#nv_home input[type="password"],
#nv_home select {
  max-width: 100%;
}

@media (max-width: 980px) and (min-width: 769px) {
  #nv_home .home-legacy-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 14px;
  }
}

@media (min-width: 769px) {
  #nv_home .home-legacy-layout {
    width: calc(100% - 24px) !important;
    max-width: 1200px;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  #nv_home .home-legacy-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: auto !important;
    margin: 10px 4px !important;
  }
  #nv_home .home-legacy-layout > .appl,
  #nv_home .home-legacy-layout > .mn {
    width: 100% !important;
    margin: 0 !important;
  }
  #nv_home .home-legacy-layout > .appl { order: 1; }
  #nv_home .home-legacy-layout > .mn {
    order: 2;
    padding: 14px 8px 20px !important;
  }
  #nv_home .home-legacy-layout > .appl .tbn {
    padding: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  #nv_home .home-legacy-layout > .appl .tbn .mt { display: none; }
  #nv_home .home-legacy-layout > .appl .tbn ul {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 6px 4px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  #nv_home .home-legacy-layout > .appl .tbn li {
    flex: 0 0 auto;
    min-height: 34px;
    margin: 0;
  }
  #nv_home .home-legacy-layout > .appl .tbn li a { padding: 8px 11px; }
  #nv_home .p_pop.facel { width: min(300px, calc(100vw - 16px)); }
}
