/* 2026 visual refresh: a warmer, clearer portal identity */
:root {
  --bg: #f6f4ef;
  --surface: #fffefa;
  --surface-soft: #edf5f1;
  --text: #17221e;
  --muted: #66726d;
  --line: #dce4df;
  --accent: #126354;
  --accent-strong: #093f36;
  --sun: #dc744e;
  --blue: #39796f;
  --shadow: 0 18px 50px rgba(31, 49, 43, 0.08);
  --shadow-soft: 0 8px 24px rgba(31, 49, 43, 0.055);
  --radius: 12px;
}

body {
  background:
    radial-gradient(900px 460px at 8% -8%, rgba(220, 116, 78, 0.08), transparent 64%),
    radial-gradient(920px 520px at 100% 3%, rgba(18, 99, 84, 0.09), transparent 62%),
    var(--bg);
}

button,
a,
input {
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(18, 99, 84, 0.2);
  outline-offset: 3px;
}

.ui-icon {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark,
.portal-brand-mark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #15705f, #083e35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(9, 63, 54, 0.2);
}

.site-brand-icon {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: var(--surface);
}

.site-brand-icon[hidden] {
  display: none;
}

.brand-mark.has-site-icon .brand-mark-sun,
.brand-mark.has-site-icon .brand-mark-gate,
.portal-brand-mark.has-site-icon .brand-mark-sun,
.portal-brand-mark.has-site-icon .brand-mark-gate {
  display: none;
}

.brand-mark-sun {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f39a72;
  box-shadow: 0 0 0 4px rgba(243, 154, 114, 0.12);
}

.brand-mark-gate {
  position: absolute;
  left: 10px;
  bottom: 8px;
  width: 22px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-bottom: 0;
}

.brand-mark-gate::before {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  top: 3px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.brand-mark-gate::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.88);
  transform: translateX(-50%);
}

.portal-header {
  background: rgba(255, 254, 250, 0.88);
  border-bottom-color: rgba(18, 99, 84, 0.12);
  box-shadow: 0 6px 24px rgba(31, 49, 43, 0.045);
}

.portal-brand-name,
.brand-name {
  letter-spacing: -0.025em;
}

.portal-nav-item.active {
  color: var(--accent-strong);
  background: rgba(18, 99, 84, 0.1);
  box-shadow: inset 0 0 0 1px rgba(18, 99, 84, 0.08);
}

.nav-icon {
  width: 21px;
  height: 21px;
}

.nav-item.active .nav-icon {
  color: var(--accent);
}

.home-hero-card {
  position: relative;
  isolation: isolate;
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 48px);
  border-color: rgba(18, 99, 84, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(520px 260px at 15% 0%, rgba(255, 255, 255, 0.88), transparent 68%),
    linear-gradient(135deg, #e8f2ed 0%, #fbf9f3 58%, #f6e7dc 100%);
  box-shadow: 0 22px 64px rgba(31, 49, 43, 0.09);
}

.home-hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -80px -110px auto;
  width: 330px;
  height: 220px;
  border-radius: 50%;
  background: rgba(18, 99, 84, 0.08);
  transform: rotate(-12deg);
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.home-hero-card .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 5px rgba(220, 116, 78, 0.12);
}

.home-hero-card h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.home-hero-card p:not(.eyebrow) {
  max-width: 650px;
  color: #52615b;
  font-size: 16px;
  line-height: 1.75;
}

.home-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.home-hero-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(18, 99, 84, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.home-hero-motif {
  position: relative;
  width: 240px;
  height: 155px;
  justify-self: end;
}

.motif-sun {
  position: absolute;
  top: 2px;
  right: 18px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ef946e, #d86443);
  box-shadow: 0 16px 36px rgba(220, 116, 78, 0.2);
}

.motif-gate {
  position: absolute;
  bottom: 26px;
  border: 5px solid var(--accent-strong);
  border-bottom: 0;
  opacity: 0.2;
}

.motif-gate::before {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  top: 10px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.motif-gate-back {
  right: 38px;
  width: 112px;
  height: 82px;
  color: var(--accent-strong);
}

.motif-gate-front {
  left: 6px;
  width: 132px;
  height: 104px;
  color: var(--accent);
  opacity: 0.82;
}

.motif-path {
  position: absolute;
  left: 8px;
  right: 0;
  bottom: 5px;
  height: 22px;
  border: solid rgba(18, 99, 84, 0.22);
  border-width: 2px 0 0;
  border-radius: 50%;
  transform: rotate(-4deg);
}

.market-card {
  min-height: 52px;
  border-color: rgba(18, 99, 84, 0.14);
  border-radius: 15px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: var(--shadow-soft);
  font-family: inherit;
}

.market-label,
.market-note-inline {
  color: #718079;
}

.market-status {
  display: none;
  margin: 0;
  color: #c42c3a;
  font-size: 13px;
  font-weight: 800;
}

.market-card.market-card-unavailable .market-viewport {
  display: none;
}

.market-card.market-card-unavailable .market-status {
  display: block;
}

.market-card.market-card-partial {
  flex-wrap: wrap;
  gap: 2px 10px;
  padding-block: 7px;
}

.market-card.market-card-partial .market-status {
  display: block;
  flex: 1 0 100%;
}

.market-item strong {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 800;
  text-shadow: none;
}

.market-separator {
  color: #c8d2cc;
}

.market-change {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.up {
  color: #16805f;
  text-shadow: none;
}

.down {
  color: #c4564c;
  text-shadow: none;
}

.neutral {
  color: #829089;
}

.news-block {
  overflow: hidden;
  border-color: rgba(18, 99, 84, 0.13);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.news-block-head span {
  width: 6px;
  background: linear-gradient(180deg, var(--accent), #58a18f);
}

.news-block-head h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.news-list {
  border-top-color: rgba(18, 99, 84, 0.12);
}

.news-item {
  margin: 0 -8px;
  padding: 20px 14px;
  border-bottom-color: rgba(18, 99, 84, 0.1);
  border-radius: 14px;
}

.news-item.has-thumbnail {
  grid-template-columns: minmax(0, 1fr) clamp(148px, 18vw, 190px);
}

.news-item[href]:hover {
  background: #f2f7f4;
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.news-item h3 {
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.news-meta {
  gap: 8px 14px;
  font-size: 14px;
}

.news-thumb {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(18, 99, 84, 0.08);
}

.news-item-skeleton {
  grid-template-columns: minmax(0, 1fr) 160px;
  min-height: 126px;
}

.skeleton-line,
.skeleton-thumb {
  display: block;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(100deg, #edf1ee 25%, #f7f9f7 42%, #edf1ee 62%);
  background-size: 300% 100%;
  animation: portal-skeleton 1.4s ease infinite;
}

.skeleton-line-title {
  width: min(74%, 520px);
  height: 24px;
}

.skeleton-line-meta {
  width: 190px;
  height: 14px;
}

.skeleton-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
}

@keyframes portal-skeleton {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.site-footer {
  color: #76827d;
}

.mobile-tab-icon {
  width: 21px;
  height: 21px;
}

@media (max-width: 900px) {
  .home-hero-card {
    grid-template-columns: minmax(0, 1fr) 180px;
    min-height: 210px;
    padding: 30px;
  }

  .home-hero-motif {
    width: 170px;
    transform: scale(0.82);
    transform-origin: right center;
  }

  .mobile-tabs {
    left: 10px;
    right: 10px;
    bottom: 8px;
    padding: 7px 8px calc(7px + var(--safe-bottom));
    border: 1px solid rgba(18, 99, 84, 0.13);
    border-radius: 19px;
    background: rgba(255, 254, 250, 0.94);
    box-shadow: 0 14px 42px rgba(31, 49, 43, 0.16);
  }

  .mobile-tabs button {
    border-radius: 13px;
  }

}

@media (max-width: 620px) {
  .page-body {
    padding-top: 18px;
  }

  .home-hero-card {
    display: block;
    min-height: 0;
    padding: 26px 22px;
    border-radius: 18px;
  }

  .home-hero-motif {
    display: none;
  }

  .home-hero-card h1 {
    margin-bottom: 12px;
    font-size: clamp(29px, 9vw, 36px);
    line-height: 1.13;
  }

  .home-hero-card p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.7;
  }

  .home-hero-trust {
    margin-top: 16px;
  }

  .home-hero-trust span {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .market-card {
    min-height: 46px;
  }

  .news-block {
    border-radius: 16px;
  }

  .news-item {
    margin-inline: -4px;
    padding: 14px 8px;
  }

  .news-item.has-thumbnail,
  .news-item-skeleton {
    grid-template-columns: minmax(0, 1fr) clamp(94px, 29vw, 116px);
  }

  .news-item h3 {
    font-size: 18px;
  }

  .news-item-skeleton {
    min-height: 94px;
  }

  .portal-actions .auth-compact-button + .auth-compact-button::before {
    content: none;
  }

  .portal-actions .ghost-button,
  .portal-actions .primary-button {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 12px;
  }

  .portal-actions .ghost-button {
    border: 0;
    background: transparent;
  }

  .portal-actions .primary-button {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
  }
}

/* The market ticker runs at every viewport width once data is available. */
.market-card {
  padding-inline: clamp(16px, 1.8vw, 20px);
}

.market-viewport {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
}

.market-track.is-marquee-ready {
  flex: 0 0 max-content;
  min-width: max-content;
  width: max-content;
  justify-content: flex-start;
  animation: market-marquee-left 26s linear infinite;
  will-change: transform;
}

.market-track.is-marquee-ready .market-group {
  flex: 0 0 auto;
  padding-right: 28px;
}

.market-track.is-marquee-ready .market-group-clone {
  display: flex;
}

.market-card.is-marquee-static .market-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-color: #365c51 transparent;
  -webkit-mask-image: none;
  mask-image: none;
}

.market-card.is-marquee-static .market-track.is-marquee-ready {
  animation: none;
  transform: none;
  will-change: auto;
}

.market-card.is-marquee-static .market-track.is-marquee-ready .market-group-clone {
  display: none;
}

@keyframes market-marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-1 * var(--market-marquee-distance)), 0, 0);
  }
}

@media (max-width: 560px) {
  .market-card {
    gap: 8px;
    padding-inline: 12px;
  }

  .market-track.is-marquee-ready .market-group {
    padding-right: 22px;
  }
}

/* Familiar news, community feed, and public profile layouts. */
.page-body > .view-panel {
  width: 100%;
  max-width: var(--portal-max);
  margin-inline: auto;
}

.guide-view > .guide-articles,
.search-view > .search-results,
.bbs-view,
.my-view,
.static-view > .guide-articles,
.profile-view > .profile-page,
.message-compose-view > .message-compose-page {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.my-dashboard,
.my-dashboard-home,
.my-subpage,
.profile-card,
.message-compose-card {
  width: 100%;
}

.news-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--text);
}

.news-page-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.news-page-header p:last-child {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.news-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(130px, 170px) minmax(130px, 170px) auto auto;
  gap: 10px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.news-filter-bar label {
  min-width: 0;
}

.news-filter-bar input,
.news-filter-bar select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.news-filter-bar input:focus,
.news-filter-bar select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 107, 91, 0.1);
}

.news-filter-bar .primary-button {
  height: 42px;
  padding-inline: 18px;
}

.news-filter-reset {
  height: 42px;
  padding-inline: 8px;
}

.guide-status {
  margin: 14px 0 0;
}

.guide-article-list {
  border-top: 0;
}

.guide-article-item {
  gap: 14px;
  padding: 22px 4px;
}

.guide-article-item.has-thumbnail {
  grid-template-columns: minmax(0, 1fr) clamp(180px, 26vw, 280px);
  gap: clamp(18px, 3vw, 30px);
}

.guide-article-item[href]:hover {
  background: transparent;
}

.guide-article-item[href]:hover h3 {
  color: var(--accent-strong);
}

.guide-article-main {
  gap: 10px;
}

.guide-article-kicker,
.guide-detail-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.guide-article-kicker strong {
  padding: 3px 7px;
  border-radius: 4px;
  background: #fff0d6;
  color: #8a5a00;
  font-size: 10px;
}

.guide-article-item h3 {
  font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}

.guide-article-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.guide-article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 3px;
}

.guide-article-footer > div:first-child {
  display: grid;
  gap: 8px;
}

.guide-article-stats {
  margin-top: 0;
  white-space: nowrap;
}

.guide-detail-kicker {
  margin-bottom: 14px;
}

.guide-detail-kicker span + span::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.community-tabs {
  width: fit-content;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.community-tab {
  min-width: 108px;
  min-height: 38px;
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.community-tab.active {
  border: 0;
  background: var(--text);
  color: #fff;
}

.bbs-board-head,
.bbs-header {
  padding: 24px 26px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.bbs-board-head h2,
.bbs-header h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  letter-spacing: -0.025em;
}

.bbs-thread-list {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.bbs-thread-item {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 20px;
  transition: background-color 0.15s ease;
}

/* Q&A rows have no author avatar; do not reserve the forum feed avatar column. */
.bbs-thread-item.qa-question-item {
  grid-template-columns: minmax(0, 1fr);
}

/* 主论坛列表只保留标题和统计，不沿用问答行的语义类。 */
.bbs-thread-item.bbs-thread-item--compact {
  grid-template-columns: minmax(0, 1fr);
  background: transparent;
  transition: none;
}

.bbs-thread-item.bbs-thread-item--compact:hover {
  background: transparent;
}

.bbs-thread-item:hover {
  background: var(--surface-soft);
}

.bbs-feed-avatar {
  padding-top: 2px;
}

.bbs-feed-avatar .bbs-avatar-large {
  width: 42px;
  height: 42px;
}

.bbs-thread-main {
  gap: 7px;
}

.bbs-feed-byline {
  min-height: 24px;
  gap: 7px;
}

.bbs-feed-byline time::before {
  content: "·";
  margin-right: 7px;
}

.bbs-thread-title {
  font-size: 18px;
  line-height: 1.42;
}

.bbs-thread-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bbs-thread-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.bbs-thread-actions strong {
  color: var(--text);
  font-size: 13px;
}

.bbs-thread-item.is-pinned {
  background: color-mix(in srgb, #fff4d6 55%, var(--surface));
}

.bbs-thread-item.is-highlighted:not(.is-pinned) {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

/* The compact forum index deliberately keeps pin/highlight ordering only;
   neither state should add a visual background to an otherwise plain row. */
.bbs-thread-item.bbs-thread-item--compact.is-pinned,
.bbs-thread-item.bbs-thread-item--compact.is-highlighted:not(.is-pinned) {
  background: transparent;
}

.bbs-post-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.bbs-post,
.bbs-post-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 20px;
}

.bbs-post:last-child,
.bbs-post-item:last-child {
  border-bottom: 0;
}

.bbs-post.is-child {
  margin-left: 0;
  padding-left: 48px;
  border-left: 0;
  background: color-mix(in srgb, var(--surface-soft) 70%, var(--surface));
}

.bbs-post-item.is-accepted {
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}

.bbs-bounty-badge,
.bbs-bounty-panel {
  border: 1px solid color-mix(in srgb, var(--amber) 42%, var(--line));
  background: color-mix(in srgb, var(--amber) 12%, var(--surface));
  color: #7a4b00;
}

.bbs-bounty-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 900;
}

.bbs-bounty-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
}

.bbs-bounty-panel strong {
  font-weight: 900;
}

.bbs-bounty-panel span {
  color: var(--muted);
  font-size: 13px;
}

.profile-page {
  width: 100%;
  max-width: none;
}

.my-view {
  width: 100%;
  max-width: none;
}

.my-dashboard {
  padding: 8px 0 24px;
}

.my-hero {
  align-items: flex-start;
  padding: 30px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.55) 0 5%, transparent 6%),
    linear-gradient(130deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 56%);
  box-shadow: var(--shadow-soft);
}

.my-hero-info h2 {
  margin-bottom: 5px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.025em;
}

.my-hero-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.my-growth-stats {
  gap: 8px;
}

.my-growth-stat {
  min-height: 68px;
  align-content: center;
  border-radius: 10px;
  box-shadow: none;
}

.my-growth-guide-link {
  width: fit-content;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.my-growth-guide-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.my-quick-actions {
  margin-top: 26px;
}

.my-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.my-section-heading h3 {
  margin: 0;
  font-size: 21px;
}

.my-section-heading > span {
  color: var(--muted);
  font-size: 12px;
}

.my-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.my-grid button {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  min-height: 88px;
  padding: 16px;
  border-radius: 10px;
  text-align: left;
  letter-spacing: 0;
  box-shadow: none;
}

.my-grid-action-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-size: 15px;
  font-weight: 900;
}

.my-grid-action-copy {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.my-grid button:not(:disabled):hover .my-grid-action-copy,
.my-grid button[aria-expanded="true"] .my-grid-action-copy {
  color: color-mix(in srgb, var(--accent-strong) 72%, var(--muted));
}

.my-grid-action--logout .my-grid-action-copy {
  color: color-mix(in srgb, var(--red) 65%, var(--muted));
}

.my-notification-badge {
  position: static;
  min-width: 20px;
  margin: 0;
}

.favorite-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.favorite-button.active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--accent-strong);
}

.favorite-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.favorite-feedback {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.favorite-feedback.success {
  color: var(--green);
}

.favorite-feedback.error {
  color: var(--red);
}

.my-submissions-head > div:first-child p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.my-message-recipient-search {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}

.my-message-recipient-copy {
  display: grid;
  gap: 4px;
}

.my-message-recipient-copy strong {
  font-size: 15px;
}

.my-message-recipient-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.my-message-recipient-field {
  display: flex;
  gap: 10px;
}

.my-message-recipient-field input {
  min-width: 0;
  height: 42px;
  flex: 1 1 auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  outline: none;
}

.my-message-recipient-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.my-message-recipient-field .primary-button {
  min-width: 96px;
  height: 42px;
}

.my-message-recipient-status,
.my-message-recipient-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.my-message-recipient-status.error {
  color: var(--red);
}

.my-message-recipient-results {
  display: grid;
  gap: 8px;
}

.my-message-recipient-result {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.my-message-recipient-result:hover,
.my-message-recipient-result:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  outline: none;
}

.my-message-recipient-avatar,
.my-message-recipient-result .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.my-message-recipient-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.my-message-recipient-identity strong,
.my-message-recipient-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-message-recipient-identity small {
  color: var(--muted);
}

.my-message-recipient-action {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(26, 52, 45, 0.1);
}

.profile-back {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  min-height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #174f45;
  box-shadow: 0 6px 18px rgba(9, 47, 39, 0.14);
  backdrop-filter: blur(8px);
}

.profile-cover {
  height: 156px;
  background: linear-gradient(128deg, #115c50 0%, #1f7767 58%, #4b8e80 100%);
}

.profile-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 0 30px 28px;
  background: var(--surface);
}

.profile-identity {
  align-items: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  margin: -52px 0 0;
}

.profile-avatar,
.profile-avatar img,
.profile-avatar .user-avatar {
  width: 112px;
  height: 112px;
}

.profile-avatar {
  overflow: hidden;
  border: 5px solid var(--surface);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 54, 45, 0.18);
}

.profile-identity-copy {
  min-width: 0;
  padding-bottom: 5px;
}

.profile-identity-copy .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent-strong);
  font-size: 11px;
}

.profile-card h2 {
  overflow: hidden;
  font-size: clamp(25px, 4vw, 34px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-handle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin: 0 0 3px auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.profile-actions-title {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.profile-actions .primary-button,
.profile-actions .ghost-button {
  min-height: 40px;
  padding-inline: 14px;
}

.profile-message-toggle {
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 20%, transparent);
}

.profile-message-toggle:disabled {
  border-color: #d8ddda;
  background: #e9ecea;
  color: #8a928e;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.profile-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}

.profile-fields div {
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 15px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 3%, var(--surface));
}

.profile-fields dd {
  font-size: 16px;
}

.profile-action-status {
  margin: 0 30px 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.profile-activity {
  margin-top: 0;
  padding: 24px 30px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.profile-activity-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.profile-activity-head h3 {
  margin: 0;
  font-size: 22px;
}

.profile-activity-head .eyebrow {
  margin-bottom: 4px;
}

.profile-activity-head span {
  color: var(--muted);
  font-size: 12px;
}

.profile-activity-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  border-top: 0;
}

.profile-activity-item {
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.profile-activity-marker {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border: 2px solid color-mix(in srgb, var(--accent) 35%, var(--surface));
  border-radius: 50%;
  background: var(--accent);
}

.profile-activity-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.profile-activity-content a {
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
}

.profile-activity-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-activity-content a:hover {
  color: var(--accent-strong);
}

.profile-activity-content time {
  color: var(--muted);
  font-size: 12px;
}

.profile-activity-empty {
  margin: 16px 0 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

.profile-info-panel {
  padding: 22px 30px 30px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 52%, var(--surface));
}

.profile-info-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.profile-info-head h3 {
  margin: 0;
  font-size: 18px;
}

.profile-info-head span {
  color: var(--muted);
  font-size: 12px;
}

.profile-status {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
}

@media (max-width: 760px) {
  .news-filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.55fr);
  }

  .news-filter-search {
    grid-column: 1 / -1;
  }

  .news-filter-bar .primary-button {
    width: 100%;
  }

  .guide-article-item.has-thumbnail {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 14px;
  }

  .guide-article-footer {
    align-items: flex-start;
  }

  .guide-article-stats {
    gap: 9px;
  }

  .profile-header {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-actions {
    width: 100%;
    margin: 0;
  }

  .profile-actions .primary-button,
  .profile-actions .ghost-button {
    flex: 1 1 150px;
  }

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

@media (max-width: 620px) {
  .bbs-board-head,
  .bbs-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
  }

  .bbs-board-head > div,
  .bbs-header > div {
    width: 100%;
    min-width: 0;
  }

  .bbs-board-head h2,
  .bbs-header h2,
  .bbs-thread-detail h2,
  .bbs-detail-head h2 {
    font-size: 22px;
    line-height: 1.35;
  }

  .bbs-board-head p:last-child,
  .bbs-header p:last-child,
  .bbs-thread-content,
  .bbs-post-content,
  .bbs-text {
    font-size: 14px;
    line-height: 1.7;
  }

  .bbs-board-head > .primary-button,
  .bbs-header > .primary-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: 16px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .bbs-header > .community-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .bbs-header > .community-primary-actions > :is(a, button) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: 12px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .bbs-replies-head h3 {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .news-page-header {
    padding-bottom: 16px;
  }

  .news-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .news-filter-reset {
    width: 100%;
  }

  .guide-article-item,
  .guide-article-item.has-thumbnail {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px;
    padding: 18px 0;
  }

  .guide-article-item:not(.has-thumbnail) {
    grid-template-columns: 1fr;
  }

  .guide-article-item h3 {
    font-size: 17px;
  }

  .guide-article-tags,
  .guide-article-stats span:nth-child(2) {
    display: none;
  }

  .guide-article-footer {
    display: block;
  }

  .guide-article-stats {
    margin-top: 7px;
  }

  .community-tabs {
    width: 100%;
  }

  .community-tab {
    flex: 1 1 0;
  }

  .bbs-board-head,
  .bbs-header {
    padding: 18px;
  }

  .bbs-thread-item {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 15px 14px;
  }

  .bbs-thread-item.bbs-thread-item--compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .bbs-feed-avatar .bbs-avatar-large {
    width: 36px;
    height: 36px;
  }

  .bbs-thread-title {
    font-size: 16px;
  }

  .bbs-post,
  .bbs-post-item {
    padding: 15px 14px;
  }

  .bbs-post.is-child {
    padding-left: 28px;
  }

  .profile-cover {
    height: 104px;
  }

  .profile-header {
    gap: 16px;
    padding: 0 18px 20px;
  }

  .profile-identity {
    margin-top: -38px;
  }

  .profile-avatar,
  .profile-avatar img,
  .profile-avatar .user-avatar {
    width: 82px;
    height: 82px;
  }

  .profile-fields {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .profile-action-status {
    margin: 0 18px 16px;
  }

  .profile-status {
    margin: 14px 0 0;
  }

  .profile-activity {
    padding: 20px 18px 24px;
  }

  .profile-activity-list {
    grid-template-columns: 1fr;
  }

  .profile-info-panel {
    padding: 20px 18px 24px;
  }

  .my-hero {
    padding: 24px 18px;
  }

  .my-hero-subtitle {
    text-align: center;
  }

  .my-section-heading > span {
    display: none;
  }

  .my-grid {
    grid-template-columns: 1fr;
  }

  .my-grid button {
    min-height: 76px;
  }

  .my-submissions-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-notifications-actions {
    width: 100%;
  }

  .my-notifications-actions .primary-button,
  .my-notifications-actions .ghost-button {
    flex: 1 1 auto;
  }

  .my-message-recipient-search {
    padding: 15px;
  }

  .my-message-recipient-field {
    align-items: stretch;
    flex-direction: column;
  }

  .my-message-recipient-field .primary-button {
    width: 100%;
  }

  .my-message-recipient-result {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .my-message-recipient-action {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-card .market-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .market-card .market-track.is-marquee-ready {
    animation: none;
    transform: none;
    will-change: auto;
  }

  .market-card .market-track.is-marquee-ready .market-group-clone {
    display: none;
  }

  .skeleton-line,
  .skeleton-thumb {
    animation: none;
  }
}
