







.pg-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  background: #ede9fe;
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
}




.pg-header-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}


.pg-header-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-header-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.pg-header-text {
  
  flex: 1 1 0;
  min-width: 0;
}
.pg-header-title {
  font-size: 1.4rem;
  font-weight: var(--fw-title);
  margin: 0;
  color: #0f172a;
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.pg-header-sub {
  font-size: 0.75rem;
  color: #475569;
  font-weight: var(--fw-label);
  margin-top: 2px;
}


.pg-header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
  max-width: 100%;
}


.pg-header-guide {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  

  margin-left: auto;
  border: 1px solid var(--rule);
  background: var(--brand-yellow, #fbbf24);
  font-weight: var(--fw-emph);
  font-size: 0.95rem;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
@media (hover: hover) and (pointer: fine) {
  .pg-header-guide:hover {
    transform: translate(-1px, -1px);
    box-shadow: none;
  }
}
.pg-header-guide:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}




.pv-switch {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
}
.pv-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #fff;
  color: #475569;
  font-size: 0.8rem;
  font-weight: var(--fw-emph);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.pv-switch-btn + .pv-switch-btn { border-left: 1px solid var(--rule); }
@media (hover: hover) and (pointer: fine) {
  .pv-switch-btn:hover:not(.is-on) { background: #fce7f3; color: #0f172a; }
}
.pv-switch-btn.is-on {
  background: var(--brand-pink, #ec4899);
  color: #fff;
  cursor: default;
}
.pv-switch-icon { font-size: 0.9rem; line-height: 1; }





@media (max-width: 640px) {
  .pv-switch-btn { padding: 5px 7px; font-size: 0.70rem; gap: 0; }
  .pv-switch-icon { display: none; }
}












@media (max-width: 640px) {
  .pg-header-text { min-width: 8rem; }
}

@media (max-width: 480px) {
  .pg-header,
  .pg-header-main {
    gap: 10px;
  }
  .pg-header {
    padding: 12px 14px;
  }
  .pg-header-title {
    font-size: 1.25rem;
  }
}
