/* PC SSR extras — layout_mode cards + prose + form */

html, body, .pc-root {
  height: 100%;
}

.pc-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-post-stats {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--wb-muted);
}

.pc-media-grid {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.pc-media-grid--1 {
  grid-template-columns: 1fr;
}

.pc-media-grid--2,
.pc-media-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.pc-media-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f5;
}

.pc-media-grid--1 img {
  aspect-ratio: 16 / 9;
  max-height: 360px;
}

.pc-comment + .pc-comment {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--wb-border);
}

.discover-card-cat {
  font-size: 14px;
  color: var(--wb-orange);
}

.discover-card-cover {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
}

.discover-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.discover-card-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
}

.discover-card-split {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: start;
}

.discover-card-split img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f5;
}

/* Community list — match pcfront PostRow */
.pc-avatar--lg {
  width: 40px;
  height: 40px;
}

.pc-avatar--md {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.pc-avatar--xl {
  width: 52px;
  height: 52px;
  font-size: 24px;
}

.pc-post-avatar-link {
  flex-shrink: 0;
  text-decoration: none;
}

.pc-post-head-main {
  flex: 1;
  min-width: 0;
}

.pc-post-cat {
  margin-left: 8px;
  font-size: 14px;
  color: var(--wb-muted);
}

.pc-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pc-post-link:hover {
  text-decoration: none;
}

.pc-post-title-text {
  font-weight: 600;
  margin-bottom: 6px;
}

.pc-post-products-hint {
  margin-top: 10px;
  font-size: 14px;
  color: var(--wb-muted);
}

.pc-post-foot a {
  color: inherit;
  text-decoration: none;
}

.pc-post-foot a:hover {
  color: var(--wb-orange);
  text-decoration: none;
}

/* Discover list — match pcfront ArticleCard */
.discover-list {
  display: grid;
  gap: 12px;
}

.discover-list-card {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.discover-list-card--flush {
  padding: 0;
  overflow: hidden;
}

.discover-list-cover {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
}

.discover-list-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(46%, 1fr);
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #f5f5f5;
}

.discover-list-carousel::-webkit-scrollbar {
  display: none;
}

.discover-list-carousel img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.discover-list-body {
  padding: 12px;
}

.discover-list-cat {
  font-size: 14px;
  color: var(--wb-orange);
}

.discover-list-title {
  margin: 8px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.discover-list-summary {
  margin: 0;
  color: var(--wb-muted);
  font-size: 15px;
  line-height: 1.55;
}

.discover-list-author {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--wb-muted);
}

.discover-detail-hero-grid,
.post-detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.discover-detail-hero-grid img,
.post-detail-hero-grid img {
  width: 100%;
  max-height: 240px;
  height: 220px;
  object-fit: cover;
  display: block;
}

.post-detail-author {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 16px;
}

.post-detail-author:hover {
  text-decoration: none;
}

.post-detail-author-meta {
  flex: 1;
  min-width: 0;
}

.post-detail-author-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
}

.post-detail-expert {
  color: #2e7d32;
  display: inline-flex;
  align-items: center;
}

.post-detail-expert .pc-icon {
  color: #2e7d32;
}

/* Lucide-style icons + stats */
.pc-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.pc-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}

.pc-stat:hover {
  color: var(--wb-orange);
  text-decoration: none;
}

.pc-stat--muted,
.pc-stat--muted:hover {
  color: var(--wb-muted);
}

.pc-stat__count {
  line-height: 1;
}

.pc-post-foot .pc-stat {
  font-size: 14px;
  color: var(--wb-muted);
}

.pc-page-head__back,
.pc-page-head__actions .pc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-detail-actions .pc-stat {
  gap: 6px;
}

.post-detail-author-chevron {
  display: inline-flex;
  align-items: center;
  color: var(--wb-muted);
}

.post-detail-product-chevron {
  color: var(--wb-muted);
  margin-left: auto;
}

.post-detail-actions button.liked .pc-icon--heart {
  fill: currentColor;
}

.post-detail-author-sub {
  margin-top: 4px;
  font-size: 15px;
  color: var(--wb-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.post-detail-author-chevron {
  color: var(--wb-muted);
  font-size: 26px;
  line-height: 1;
}

.post-detail-title {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.35;
}

.post-detail-hero--inline {
  margin: 0 0 16px;
}

.post-detail-card .post-detail-hero--inline {
  margin-bottom: 16px;
}

.post-detail-hero--inline + .post-detail-content {
  margin-top: 0;
}

.post-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--wb-border);
}

.post-detail-products {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--wb-border);
}

.post-detail-products-label {
  font-size: 14px;
  color: var(--wb-muted);
  font-weight: 600;
  margin: 0 0 10px;
}

.post-detail-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}

.post-detail-product:hover {
  text-decoration: none;
  border-color: var(--wb-orange);
}

.post-detail-product img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

.post-detail-product-meta {
  flex: 1;
  min-width: 0;
}

.post-detail-product-name {
  font-weight: 500;
}

.post-detail-product-price {
  color: var(--wb-orange);
  font-weight: 600;
  margin-top: 2px;
}

.post-detail-comment-form-wrap {
  padding: 14px 20px;
  border-bottom: 1px solid var(--wb-border);
}

.post-detail-comment-form {
  display: flex;
  gap: 10px;
}

.post-detail-comment-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--wb-border);
  border-radius: 20px;
  font-size: 16px;
  outline: none;
}

.post-detail-comment-form input:focus {
  border-color: var(--wb-orange);
}

.post-detail-comment-list {
  padding: 16px 20px;
}

.post-detail-comments-empty {
  text-align: center;
  color: var(--wb-muted);
  padding: 24px;
  margin: 0;
}

.post-detail-comment-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.post-detail-comment-body {
  flex: 1;
  min-width: 0;
}

.post-detail-comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
}

.post-detail-comment-meta span {
  color: var(--wb-muted);
  font-size: 14px;
}

.post-comment-bubble p {
  margin: 0;
  line-height: 1.6;
}

.post-comment-bubble--reply {
  margin-left: 12px;
  margin-top: 8px;
}

.post-comment-bubble--reply strong {
  font-size: 14px;
}

.post-comment-bubble--reply p {
  margin-top: 4px;
  font-size: 15px;
}

.pc-prose {
  line-height: 1.75;
  word-break: break-word;
}

.pc-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.pc-login-form {
  display: grid;
  gap: 12px;
}

.pc-login-form label {
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.pc-login-form .pc-agree,
.pc-login-form #pc-agree-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--wb-muted, #666);
  cursor: pointer;
}

.pc-login-form .pc-agree input[type="checkbox"],
.pc-login-form #pc-agree-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--wb-orange, #e07a3d);
}

.pc-login-form .pc-agree span,
.pc-login-form #pc-agree-wrap > span {
  display: inline;
  white-space: normal;
}

.pc-login-form .pc-agree a,
.pc-login-form #pc-agree-wrap a {
  color: var(--wb-link, var(--wb-orange));
}

.pc-login-form input {
  height: 36px;
  border: 1px solid var(--wb-border);
  border-radius: 6px;
  padding: 0 10px;
  font-size: 16px;
}

.pc-form-error {
  color: #c00;
  font-size: 15px;
  margin: 0;
}

.pc-user-name {
  font-size: 15px;
  color: var(--wb-text);
}

.pc-hot-rank {
  width: 18px;
  flex-shrink: 0;
  color: var(--wb-orange);
  font-weight: 700;
}

.pc-hot-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--wb-text);
}

.pc-hot-item {
  text-decoration: none;
}

.pc-hot-item:hover .pc-hot-text {
  color: var(--wb-orange);
}

@media (max-width: 640px) {
  .discover-card-split {
    grid-template-columns: 1fr;
  }

  .discover-card-split img {
    width: 100%;
    height: 180px;
  }
}

.pc-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--wb-orange);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.pc-tag {
  display: inline-block;
  margin-right: 8px;
  font-size: 14px;
  color: var(--wb-link);
}

.pc-field {
  margin-bottom: 12px;
}

.pc-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.pc-field input,
.pc-field textarea,
.pc-field select {
  width: 100%;
  border: 1px solid var(--wb-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 16px;
  font-family: inherit;
}

.pc-create-preview {
  position: relative;
}

.pc-create-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.pc-create-preview button,
.pc-create-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  width: 22px;
  height: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pc-btn.is-liked {
  border-color: var(--wb-orange);
  color: var(--wb-orange);
}

.pc-toast-host {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.pc-toast {
  background: #333;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: opacity 0.25s, transform 0.25s;
}

.pc-toast--ok { background: #2f7d32; }
.pc-toast--err { background: #c62828; }
.pc-toast--out { opacity: 0; transform: translateY(-6px); }

.pc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-modal[hidden] { display: none !important; }

.pc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.pc-modal-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: min(360px, calc(100% - 32px));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.pc-onboard-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: background 0.28s ease, transform 0.28s ease;
}

.pc-onboard-bar.active {
  background: linear-gradient(90deg, #fa7d3c, #eb7350);
  transform: scaleY(1.15);
}

.pc-login-wrap {
  padding: 24px 16px 48px;
}

.pc-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #eee;
  border-top-color: var(--wb-orange);
  border-radius: 50%;
  animation: pc-spin 0.8s linear infinite;
}

@keyframes pc-spin {
  to { transform: rotate(360deg); }
}

/* Unified header / page head */
.pc-header-inner {
  min-width: 0;
}

.pc-nav-links {
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.pc-search {
  flex-shrink: 0;
  opacity: 0.65;
  cursor: not-allowed;
}

.pc-locale-select {
  height: 32px;
  border-radius: 20px;
  padding: 0 10px;
  flex-shrink: 0;
}

/* page-head / page-nav sizes live in pc.css (--pc-page-head-h from /video) */

.pc-header-btn {
  text-decoration: none !important;
}

.pc-header-text-link {
  font-size: 15px;
  color: var(--wb-text);
  text-decoration: none;
  white-space: nowrap;
}

.pc-header-text-link:hover {
  color: var(--wb-orange);
  text-decoration: none;
}

.pc-header-avatar-link {
  display: inline-flex;
  text-decoration: none;
}

.pc-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.pc-account-menu {
  position: relative;
  flex-shrink: 0;
}

.pc-account-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 2px;
  border: 1px solid var(--wb-border, #e6e6e6);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  line-height: 1;
  color: var(--wb-text, #333);
}

.pc-account-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #4b5563;
  flex-shrink: 0;
}

.pc-account-menu__trigger:hover .pc-account-menu__icon,
.pc-account-menu.is-open .pc-account-menu__icon {
  background: #fff4ef;
  color: var(--wb-orange, #e85d04);
}

.pc-account-menu__trigger:hover,
.pc-account-menu.is-open .pc-account-menu__trigger {
  border-color: var(--wb-orange, #e85d04);
}

.pc-account-menu__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #888;
  margin-inline-end: 4px;
}

.pc-account-menu.is-open .pc-account-menu__caret {
  transform: rotate(180deg);
}

.pc-account-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 200px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--wb-border, #e6e6e6);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  z-index: 200;
}

.pc-account-menu__dropdown[hidden] {
  display: none !important;
}

.pc-account-menu__meta {
  padding: 8px 10px 10px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 4px;
}

.pc-account-menu__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--wb-text, #222);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.pc-account-menu__item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: start;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wb-text, #222);
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}

.pc-account-menu__item:hover {
  background: #fff4ef;
  color: var(--wb-orange, #e85d04);
  text-decoration: none;
}

.pc-account-menu__item--danger {
  color: #c62828;
  margin-top: 4px;
  border-top: 1px solid #f0f0f0;
  border-radius: 0 0 8px 8px;
}

.pc-account-menu__item--danger:hover {
  background: #fff1f0;
  color: #b71c1c;
}

.pc-header-icon-label {
  font-size: 15px;
}

.pc-locale-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pc-bare-top {
  height: var(--wb-header-h);
  min-height: var(--wb-header-h);
  max-height: var(--wb-header-h);
  border-bottom: 1px solid var(--wb-border);
  background: var(--wb-card);
  overflow: hidden;
}

.pc-bare-top-inner {
  max-width: var(--wb-max);
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.pc-page-head__back,
.pc-page-head__actions .pc-btn,
.pc-page-head__actions a.pc-btn {
  text-decoration: none !important;
}

.pc-muted {
  color: var(--wb-muted);
  font-size: 15px;
  margin: 0;
}

.pc-center {
  text-align: center;
}

.pc-list-gap {
  display: grid;
  gap: 12px;
}

.pc-load-more {
  text-align: center;
  margin: 16px 0;
}

.pc-infinite {
  text-align: center;
  margin: 20px 0 28px;
  color: var(--wb-muted, #888);
  font-size: 14px;
}

.pc-infinite__sentinel {
  height: 1px;
  width: 100%;
}

.pc-infinite__status {
  margin-top: 10px;
  min-height: 1.4em;
}

.pc-infinite.is-loading .pc-infinite__status::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-inline-end: 8px;
  border: 2px solid #e8e8e8;
  border-top-color: var(--wb-orange, #fa7d3c);
  border-radius: 50%;
  vertical-align: -2px;
  animation: pc-spin 0.8s linear infinite;
}

.pc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 12px;
  padding: 4px 0;
}

.pc-pagination__pages {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pc-pagination__btn,
.pc-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--wb-border, #e6e6e6);
  border-radius: 8px;
  background: #fff;
  color: var(--wb-text, #333);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.pc-pagination__btn:hover,
.pc-pagination__page:hover {
  border-color: #f0b090;
  color: var(--wb-orange, #fa7d3c);
  background: #fff8f4;
  text-decoration: none;
}

.pc-pagination__page.is-current {
  border-color: var(--wb-orange, #fa7d3c);
  background: var(--wb-orange, #fa7d3c);
  color: #fff;
  font-weight: 600;
  cursor: default;
}

.pc-pagination__btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f7f7f7;
  color: #999;
}

.pc-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: #999;
  font-size: 14px;
}

.pc-author-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.pc-meta-cat {
  color: var(--wb-muted);
  margin-left: 8px;
  font-size: 14px;
}

.pc-post-title {
  font-size: 17px;
  margin: 10px 0 6px;
}

.pc-post-title a {
  color: inherit;
  text-decoration: none;
}

.pc-post-preview {
  margin: 0;
  line-height: 1.6;
}

.pc-article-title {
  font-size: 26px;
  margin: 8px 0 12px;
}

.pc-post-actions {
  margin: 16px 0 0;
  color: var(--wb-muted);
  font-size: 15px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.pc-comment-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.pc-comment-form input {
  flex: 1;
  height: 36px;
  border: 1px solid var(--wb-border);
  border-radius: 6px;
  padding: 0 10px;
}

.pc-comment p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.pc-comment-replies {
  margin: 8px 0 0 16px;
  padding-left: 12px;
  border-left: 2px solid var(--wb-border);
}

.pc-create-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.pc-check {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.pc-check-inline {
  display: inline-flex;
  margin-right: 12px;
  margin-bottom: 8px;
}

.pc-link-btn {
  background: none;
  border: none;
  color: var(--wb-link);
  cursor: pointer;
  font-size: 15px;
}

.pc-settings-avatar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pc-settings-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.pc-profile-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pc-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pc-profile-meta {
  flex: 1;
  min-width: 0;
}

.pc-profile-meta h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.pc-profile-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pc-mini-row {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.pc-mini-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.pc-notif {
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.pc-notif--unread {
  border-color: var(--wb-orange) !important;
}

.pc-notif-title {
  margin: 0;
  font-weight: 600;
}

.pc-notif-time {
  margin-top: 8px !important;
  font-size: 14px !important;
}

.pc-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pc-filter-bar input,
.pc-filter-bar select {
  height: 34px;
  border: 1px solid var(--wb-border);
  border-radius: 6px;
  padding: 0 10px;
}

.pc-filter-bar input {
  flex: 1;
  min-width: 160px;
}

.pc-pre {
  margin: 0;
  white-space: pre-wrap;
}

.pc-xp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pc-xp-in { color: var(--wb-orange); }
.pc-xp-out { color: #c00; }

.pc-video-row {
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: center;
}

.pc-video-cover {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}

.pc-video-cover--empty {
  background: #f5f5f5;
}

.pc-video-hero {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  display: block;
}

.pc-player-card {
  padding: 0;
  overflow: hidden;
}

.pc-player-inner {
  position: relative;
  user-select: none;
}

#pc-secure-video {
  display: block;
  width: 100%;
  max-height: 480px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.pc-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pc-lesson-tab {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}

.pc-btn-block {
  width: 100%;
  margin-bottom: 8px;
}

.pc-progress {
  height: 6px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.pc-progress > div {
  height: 100%;
  background: var(--wb-orange);
}

.pc-price {
  margin-left: 8px;
  color: var(--wb-orange);
}

.pc-price-lg {
  font-size: 20px;
  font-weight: 600;
  color: var(--wb-orange);
  margin: 0 0 12px;
}

.pc-price-old {
  margin-left: 8px;
  font-size: 15px;
  color: var(--wb-muted);
  text-decoration: line-through;
}

.pc-product-cards {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.pc-product-card {
  margin: 0;
  text-decoration: none;
  color: inherit;
}

.pc-tags {
  margin: 12px 0 0;
}

.pc-field-label {
  font-weight: 600;
  margin: 0 0 8px;
}

body[data-page='onboarding'] {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(250, 125, 60, 0.18), transparent 60%),
    radial-gradient(700px 380px at 92% 8%, rgba(90, 140, 160, 0.14), transparent 55%),
    linear-gradient(165deg, #f4f6f8 0%, #f8f3ef 48%, #eef2f5 100%);
}

body[data-page='onboarding'] .pc-bare-top {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.pc-onboarding-shell {
  min-height: calc(100vh - var(--wb-header-h));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px 48px;
}

.pc-onboarding {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  animation: pc-onboard-enter 0.45s ease both;
}

@keyframes pc-onboard-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pc-onboarding-hero {
  margin-bottom: 8px;
}

.pc-onboarding-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6a55;
}

.pc-onboarding-brand {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1f1f1f;
}

.pc-onboarding-lead {
  margin: 10px 0 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.55;
  color: var(--wb-muted, #777);
}

.pc-onboard-progress {
  display: flex;
  gap: 8px;
  margin: 28px 0 10px;
}

.pc-onboard-steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pc-onboard-steps li {
  margin: 0;
  font-size: 12px;
  color: #9a9a9a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.pc-onboard-steps li.is-active {
  color: #c45a28;
  font-weight: 600;
}

.pc-onboarding-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 18px 50px rgba(40, 30, 20, 0.08);
  backdrop-filter: blur(8px);
  min-height: 280px;
}

.pc-onboarding-step {
  animation: pc-onboard-step 0.32s ease both;
}

@keyframes pc-onboard-step {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pc-onboarding-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 650;
  color: #222;
}

.pc-onboarding-hint {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--wb-muted, #888);
}

.pc-onboarding-label {
  margin: 8px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.pc-onboard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.pc-onboard-chip {
  appearance: none;
  border: 1px solid #e4e4e4;
  background: #fff;
  color: #333;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pc-onboard-chip:hover {
  border-color: #f0b090;
  background: #fff8f4;
  text-decoration: none;
}

.pc-onboard-chip.active {
  border-color: var(--wb-orange, #fa7d3c);
  background: var(--wb-orange, #fa7d3c);
  color: #fff;
  box-shadow: 0 6px 16px rgba(250, 125, 60, 0.28);
}

.pc-onboard-chip:active {
  transform: scale(0.98);
}

.pc-onboard-interests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pc-onboard-interest {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: start;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid #e8e8e8;
  background: #fff;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.pc-onboard-interest:hover {
  border-color: #f0b090;
  background: #fffaf7;
  text-decoration: none;
}

.pc-onboard-interest.active {
  border-color: var(--wb-orange, #fa7d3c);
  background: linear-gradient(180deg, #fff8f3, #fff);
  box-shadow: 0 0 0 1px rgba(250, 125, 60, 0.35), 0 10px 24px rgba(250, 125, 60, 0.12);
}

.pc-onboard-interest:active {
  transform: scale(0.985);
}

.pc-onboard-interest__mark {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #9a5a38;
  background: linear-gradient(145deg, #fff1e8, #f3e7dc);
}

.pc-onboard-interest.active .pc-onboard-interest__mark {
  color: #fff;
  background: linear-gradient(145deg, #fa7d3c, #e86a2e);
}

.pc-onboard-interest__name {
  font-size: 16px;
  font-weight: 600;
  color: #2a2a2a;
}

.pc-onboarding-ready {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 8px 12px;
}

.pc-onboarding-ready__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #fa7d3c, #e86a2e);
  box-shadow: 0 12px 28px rgba(250, 125, 60, 0.3);
  animation: pc-onboard-pop 0.45s ease both;
}

@keyframes pc-onboard-pop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pc-onboarding-ready .pc-onboarding-hint {
  margin-bottom: 0;
  max-width: 28em;
}

.pc-onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.pc-onboarding-actions__end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: auto;
}

.pc-onboarding-back {
  min-width: 96px;
}

.pc-onboarding-next {
  min-width: 128px;
  min-height: 42px;
  padding-inline: 20px;
  border-radius: 10px;
}

.pc-onboarding-skip {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 2px;
}

.pc-onboarding-skip:hover {
  color: var(--wb-orange, #fa7d3c);
  text-decoration: underline;
}

@media (max-width: 560px) {
  .pc-onboarding-shell {
    padding: 16px 12px 36px;
  }

  .pc-onboarding-panel {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .pc-onboard-interests {
    grid-template-columns: 1fr;
  }

  .pc-onboard-steps {
    display: none;
  }

  .pc-onboarding-actions {
    flex-wrap: wrap;
  }

  .pc-onboarding-actions__end {
    width: 100%;
    justify-content: space-between;
  }
}

.pc-payment-return {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}

.pc-payment-fail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.pc-empty h1 {
  margin: 0 0 12px;
  font-size: 24px;
}

.pc-empty {
  padding: 40px 20px;
}

@media (max-width: 860px) {
  .pc-search {
    display: none;
  }

  .pc-video-row {
    grid-template-columns: 120px 1fr;
  }

  .pc-video-cover {
    width: 120px;
    height: 68px;
  }
}

