/* The header every page shares: logo, title, tabs, status, Back. */

.ym-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; row-gap: 8px;
  padding: 12px 24px; background: #FFFFFF; border-bottom: 1px solid #E7E9EE;
  font-family: "Poppins", system-ui, sans-serif;
}
.ym-header img { height: 24px; flex-shrink: 0; display: block; }
.ym-header-divider { width: 1px; height: 22px; background: #E7E9EE; }
.ym-header-title { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600;
  color: #1A1F2B; cursor: pointer; text-decoration: none; }

.header-tabs { display: flex; gap: 4px; background: #F7F8FA; border: 1px solid #E7E9EE;
  border-radius: 999px; padding: 3px; margin-left: 16px; }
.header-tab { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 500;
  color: #6B7280; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.header-tab:hover { color: #1A1F2B; background: #FFFFFF; }
.header-tab.active { background: #FFFFFF; color: #B80059; box-shadow: 0 1px 2px rgba(26, 31, 43, 0.06); }
.header-tab .ro { font-size: 10px; color: #9AA1AC; margin-left: 4px; }
.header-tab .count { font-size: 11px; background: #F1F3F6; border-radius: 10px; padding: 1px 7px;
  margin-left: 4px; color: #4B5563; }
.header-tab .count:empty { display: none; }

.header-meta { margin-left: auto; font-size: 12px; color: #6B7280; display: flex; gap: 14px;
  flex-wrap: wrap; min-width: 0; }
.header-meta b { font-weight: 600; color: #1A1F2B; }
.header-meta .warn { color: #C27803; }

.back { border: 1px solid #E7E9EE; background: #F7F8FA; color: #4B5563; font: inherit; font-size: 13px;
  font-weight: 500; padding: 7px 14px; border-radius: 8px; text-decoration: none; cursor: pointer; }
.back:hover { color: #1A1F2B; border-color: #9AA1AC; }

@media (max-width: 760px) {
  .ym-header { padding: 12px 16px; }
  .header-tabs { margin-left: 0; }
  .header-tab .ro { display: none; }
  .header-meta { display: none; }
}
