.sm-theme-19 {
  --sm-accent: var(--accent);
  --sm-bg: var(--surface);
  --sm-bg-soft: var(--surface-soft);
  --sm-panel: var(--surface);
  --sm-line: var(--border);
  --sm-text: var(--text);
  --sm-muted: var(--muted);
  --sm-border: var(--border);
  --sm-action-text: #fff;
}

.header-actions [data-sm-member-slot],
.header-actions .sm-member-dock {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-actions .sm-member-dock {
  position: static !important;
  gap: 6px;
}

.header-actions .sm-member-icon,
.header-actions [data-sm-open] {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
}

.header-actions .sm-member-icon:hover,
.header-actions [data-sm-open]:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.header-actions .sm-member-icon svg,
.header-actions [data-sm-open] svg {
  display: block;
  width: 18px;
  height: 18px;
}

.header-actions .sm-member-icon[hidden] {
  display: none !important;
}

.p19-member-page {
  width: 100%;
  box-sizing: border-box;
  margin: 30px auto 48px;
}

.p19-member-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, var(--surface)) 0%, var(--surface) 68%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .09);
}

.p19-member-hero::after {
  position: absolute;
  top: -75px;
  right: -45px;
  width: 230px;
  height: 230px;
  border: 45px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 50%;
  content: "";
}

.p19-member-kicker {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .15em;
}

.p19-member-kicker b {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  letter-spacing: 0;
}

.p19-member-hero h1 {
  position: relative;
  z-index: 1;
  margin: 15px 0 8px;
  color: var(--text);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
}

.p19-member-hero p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.p19-member-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 20px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.p19-member-tabs a {
  display: flex;
  min-height: 48px;
  padding: 10px 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.p19-member-tabs a:hover {
  background: var(--surface-soft);
  color: var(--accent);
}

.p19-member-tabs a.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 26%, transparent);
}

.p19-member-content {
  min-height: 260px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.p19-member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.p19-member-content [data-member-page-notice] {
  margin: 0 0 18px;
  border-color: var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
}

.p19-member-content [data-member-page-pages] {
  display: flex;
  margin-top: 24px;
  justify-content: center;
  gap: 8px;
}

.p16-video-info .sm-video-actions {
  display: flex;
  margin: 18px 0 4px;
  flex-wrap: wrap;
  gap: 9px;
}

.p16-video-info .sm-video-actions button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
}

.p16-video-info .sm-video-actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.p16-video-info .sm-video-actions button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.p16-video-info ~ .sm-comments {
  width: 100%;
  max-width: none;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.p19-drawer-theme {
  display: none;
}

@media (max-width: 980px) {
  .p19-member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header .header-actions .theme-toggle { display: none !important; }
  .site-header .header-actions { gap: 8px; }
  .site-header .header-actions [data-sm-member-slot] { display: flex !important; }
  .site-header .header-actions .sm-member-dock { display: flex !important; }
  .site-header .header-actions .sm-member-dock > :not([data-sm-open]) { display: none !important; }
  .site-header .header-actions [data-sm-open] { display: inline-flex !important; }
  .p19-drawer-theme {
    display: flex;
    width: calc(100% - 28px);
    min-height: 44px;
    margin: 12px 14px;
    padding: 0 14px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-soft);
    color: var(--text);
  }
  .p19-drawer-theme b { font-size: 14px; }
  .p19-member-page { width: 100%; margin-top: 16px; }
  .p19-member-hero { padding: 26px 22px; border-radius: 14px; }
  .p19-member-hero::after { width: 150px; height: 150px; border-width: 30px; }
  .p19-member-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p19-member-tabs a { min-height: 45px; padding: 8px; font-size: 14px; }
  .p19-member-content { padding: 14px; border-radius: 13px; }
  .p19-member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p16-video-info .sm-video-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p16-video-info .sm-video-actions button { width: 100%; min-width: 0; padding: 0 8px; }
}

@media (max-width: 420px) {
  .p19-member-hero h1 { font-size: 30px; }
}
